CYCLUS
|
A logging tool providing finer grained control over standard output for debugging and other purposes.
#include <logger.h>
Public Member Functions | |
std::ostringstream & | Get (LogLevel level, std::string prefix) |
Logger () | |
virtual | ~Logger () |
Static Public Member Functions | |
static bool & | NoAgent () |
static bool & | NoMem () |
static LogLevel & | ReportLevel () |
static void | SetNoAgent (bool na) |
static void | SetNoMem (bool nm) |
static void | SetReportLevel (LogLevel level) |
static LogLevel | ToLogLevel (std::string text) |
static std::string | ToString (LogLevel level) |
Protected Attributes | |
std::ostringstream | os |
std::ostringstream & cyclus::Logger::Get | ( | LogLevel | level, |
std::string | prefix ) |
|
static |
Converts a string into a corresponding LogLevel value.
For strings that do not correspond to any particular LogLevel enum value, the method returns the LogLevel value LEV_ERROR
. This method is primarily intended for translating command line verbosity argument(s) into appropriate report levels. LOG(level) statements
|
static |
Converts a LogLevel enum value into a corrsponding string.
For a level argments that have no corresponding string value, the string BAD_LEVEL
is returned. This method is primarily intended for translating LOG(level) statement levels into appropriate strings for output to stdout.