Class Dune::XT::Common::Logging

class Dune::XT::Common::Logging

handles all logging

Struct Dune::XT::Common::Logging::SuspendLocal

struct Dune::XT::Common::Logging::SuspendLocal

RAII guard that suspends logging below prio on construction and resumes it on destruction

explicit Dune::XT::Common::Logging::SuspendLocal::SuspendLocal(LogStream::PriorityType prio = LogStream::default_suspend_priority)

No documentation provided.

Dune::XT::Common::Logging::SuspendLocal::~SuspendLocal()

No documentation provided.

LogStream::PriorityType Dune::XT::Common::Logging::SuspendLocal::prio_

No documentation provided.

Struct Dune::XT::Common::Logging::ResumeLocal

struct Dune::XT::Common::Logging::ResumeLocal

RAII guard that resumes logging below prio on construction and suspends it again on destruction

explicit Dune::XT::Common::Logging::ResumeLocal::ResumeLocal(LogStream::PriorityType prio = LogStream::default_suspend_priority)

No documentation provided.

Dune::XT::Common::Logging::ResumeLocal::~ResumeLocal()

No documentation provided.

LogStream::PriorityType Dune::XT::Common::Logging::ResumeLocal::prio_

No documentation provided.

void Dune::XT::Common::Logging::deinit()

cleanup stream and flag containers

Logging &Dune::XT::Common::Logging::operator=(const Logging&) = delete

No documentation provided.

void Dune::XT::Common::Logging::create(int logflags = LogDefault, const std::string &logfile = <recovery-expr>("dune_xt_common_log"), const std::string &datadir = <recovery-expr>("data"), const std::string &_logdir = <recovery-expr>("log"))

setup loglevel, logfilename

:param logflags: any OR’d combination of flags :param logfile: filename for log, can contain paths, but creation will fail if dir is non-existant

void Dune::XT::Common::Logging::set_prefix(std::string prefix)

Warning

This will probably not do wht we want it to!

void Dune::XT::Common::Logging::set_stream_flags(int streamID, int flags)

No documentation provided.

int Dune::XT::Common::Logging::get_stream_flags(int streamID) const

No documentation provided.

LogStream &Dune::XT::Common::Logging::get_stream(int streamId)

\ }

LogStream &Dune::XT::Common::Logging::error()

No documentation provided.

LogStream &Dune::XT::Common::Logging::info()

No documentation provided.

LogStream &Dune::XT::Common::Logging::debug()

No documentation provided.

LogStream &Dune::XT::Common::Logging::devnull()

No documentation provided.

void Dune::XT::Common::Logging::flush()

flush all active streams

int Dune::XT::Common::Logging::add_stream(int flags)

creates a new LogStream with given flags, returns new ID

void Dune::XT::Common::Logging::resume(LogStream::PriorityType prio = LogStream::default_suspend_priority)

re-enable all logging below given priority level

void Dune::XT::Common::Logging::suspend(LogStream::PriorityType prio = LogStream::default_suspend_priority)

(temporarily) disable all logging below given priority level

Dune::XT::Common::Logging::Logging()

No documentation provided.

Dune::XT::Common::Logging::Logging(const Logging&) = delete

No documentation provided.

Dune::XT::Common::Logging::~Logging()

No documentation provided.

int Dune::XT::Common::Logging::filename_

No documentation provided.

int Dune::XT::Common::Logging::filenameWoTime_

No documentation provided.

int Dune::XT::Common::Logging::logfile_

No documentation provided.

int Dune::XT::Common::Logging::flagmap_

No documentation provided.

int Dune::XT::Common::Logging::streammap_

No documentation provided.

int Dune::XT::Common::Logging::streamIDs_

No documentation provided.

int Dune::XT::Common::Logging::logflags_

No documentation provided.

EmptyLogStream Dune::XT::Common::Logging::emptyLogStream_

No documentation provided.

template<class T>
void Dune::XT::Common::Logging::log(T c, int streamID)

\ {

forwarded Log functions