Centralized global and local logging facility working on streams like std::cout.
std::ostream & sout() const
stream for statistic-output (local)
static std::ostream * world
Logger(Level level)
creates a new Logger-object with LogMode::Global and given local log-level
static void globalInternalLibraryLogLevel(Level level)
sets the internal-library log-level
static Level globalInternalLibraryLogLevel()
gives the internal-library log-level
static std::ostream & sfout()
stream for forced output (global)
static std::ostream & ssout()
stream for statistic-output (global)
static void globalMinimumLogLevel(Level level)
sets the globally minimally required log-level
static void globalLogLevel(Level level)
sets the global log-level
void localLogLevel(Level level)
sets the local log-level
static bool is_slout(Level level=Level::Default)
returns true if such an slout command will result in text being printed
void localLogMode(LogMode m)
sets the local log-mode
std::ostream & fout() const
stream for forced output (local)
static std::ostream nirvana
Logger(LogMode m)
creates a new Logger-object with given log-mode and local log-level equal globalLogLevel
static Level m_globallibraryloglevel
static Level globalLogLevel()
gives the global log-level
static bool globalStatisticMode()
returns true if we are globally in statistic mode
Level localLogLevel() const
gives the local log-level
static Level m_globalloglevel
Level
supported log-levels from lowest to highest importance
@ GlobalLog
the object is in logging mode, but uses the globalLogLevel
@ Statistic
the object is in statistic mode
@ Global
the object is in the same mode as the static Logger-class (i.e., global settings)
@ Log
the object is in logging mode, using its own localLogLevel
static bool is_ilout(Level level=Level::Default)
stream for logging-output (global; used by internal libraries, e.g. Abacus) returns true if such an i...
static std::ostream & ilout(Level level=Level::Default)
static std::ostream & slout(Level level=Level::Default)
stream for logging-output (global)
Logger()
creates a new Logger-object with LogMode::Global and local log-level equal globalLogLevel
static std::ostream & ifout()
stream for forced output (global; used by internal libraries, e.g. Abacus)
LogMode localLogMode() const
gives the local log-mode
std::ostream & lout(Level level=Level::Default) const
stream for logging-output (local)
static bool m_globalstatisticmode
static Level m_minimumloglevel
static Level globalMinimumLogLevel()
gives the globally minimally required log-level
Level effectiveLogLevel() const
obtain the effective log-level for the Logger-object (i.e., resolve the dependencies on the global se...
static void setWorldStream(std::ostream &o)
change the stream to which allowed output is written (by default: std::cout)
bool is_lout(Level level=Level::Default) const
returns true if such an lout command will result in text being printed
bool effectiveStatisticMode() const
returns true if the Logger-object is effectively in statistic-mode (as this might be depending on the...
Logger(LogMode m, Level level)
creates a new Logger-object with given log-mode and given local log-level
static void globalStatisticMode(bool s)
sets whether we are globally in statistic mode
Basic configuration file.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.