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