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

Constructor Dune::XT::Common::Logging::SuspendLocal::SuspendLocal

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

No documentation provided.

Destructor Dune::XT::Common::Logging::SuspendLocal::~SuspendLocal

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

No documentation provided.

Field Dune::XT::Common::Logging::SuspendLocal::prio_

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

Constructor Dune::XT::Common::Logging::ResumeLocal::ResumeLocal

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

No documentation provided.

Destructor Dune::XT::Common::Logging::ResumeLocal::~ResumeLocal

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

No documentation provided.

Field Dune::XT::Common::Logging::ResumeLocal::prio_

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

No documentation provided.

Method Dune::XT::Common::Logging::deinit

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

cleanup stream and flag containers

Method Dune::XT::Common::Logging::operator=

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

No documentation provided.

Method Dune::XT::Common::Logging::create

void Dune::XT::Common::Logging::create(int logflags = LogDefault, const std::string &logfile, const std::string &datadir, const std::string &_logdir)

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

Method Dune::XT::Common::Logging::set_prefix

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

Warning

This will probably not do wht we want it to!

Method Dune::XT::Common::Logging::set_stream_flags

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

No documentation provided.

Method Dune::XT::Common::Logging::get_stream_flags

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

No documentation provided.

Method Dune::XT::Common::Logging::get_stream

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

\ }

Method Dune::XT::Common::Logging::error

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

No documentation provided.

Method Dune::XT::Common::Logging::info

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

No documentation provided.

Method Dune::XT::Common::Logging::debug

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

No documentation provided.

Method Dune::XT::Common::Logging::devnull

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

No documentation provided.

Method Dune::XT::Common::Logging::flush

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

flush all active streams

Method Dune::XT::Common::Logging::add_stream

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

creates a new LogStream with given flags, returns new ID

Method Dune::XT::Common::Logging::resume

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

re-enable all logging below given priority level

Method Dune::XT::Common::Logging::suspend

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

(temporarily) disable all logging below given priority level

Constructor Dune::XT::Common::Logging::Logging

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

No documentation provided.

Constructor Dune::XT::Common::Logging::Logging

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

No documentation provided.

Destructor Dune::XT::Common::Logging::~Logging

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

No documentation provided.

Field Dune::XT::Common::Logging::filename_

boost::filesystem::path Dune::XT::Common::Logging::filename_

No documentation provided.

Field Dune::XT::Common::Logging::filenameWoTime_

boost::filesystem::path Dune::XT::Common::Logging::filenameWoTime_

No documentation provided.

Field Dune::XT::Common::Logging::logfile_

boost::filesystem::ofstream Dune::XT::Common::Logging::logfile_

No documentation provided.

Field Dune::XT::Common::Logging::flagmap_

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

No documentation provided.

Field Dune::XT::Common::Logging::streammap_

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

No documentation provided.

Field Dune::XT::Common::Logging::streamIDs_

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

No documentation provided.

Field Dune::XT::Common::Logging::logflags_

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

No documentation provided.

Field Dune::XT::Common::Logging::emptyLogStream_

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

No documentation provided.

Function template Dune::XT::Common::Logging::log

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

\ {

forwarded Log functions