#include <EDepSimLog.hh>
Public Types | |
enum | ErrorPriority { SilentLevel, ErrorLevel, SevereLevel, WarnLevel, DebugLevel, TraceLevel } |
enum | LogPriority { QuietLevel, LogLevel, InfoLevel, VerboseLevel } |
Public Member Functions | |
~LogManager () | |
Static Public Member Functions | |
static void | Configure (const char *conf=NULL) |
static void | SetDebugStream (std::ostream *err) |
Set the output stream to be used for error messages. More... | |
static void | SetDebugLevel (ErrorPriority level) |
static void | SetDebugLevel (const char *trace, ErrorPriority level) |
Set the debugging level for a particular trace. More... | |
static ErrorPriority | GetDebugLevel () |
Get the current debugging level;. More... | |
static ErrorPriority | GetDebugLevel (const char *trace) |
Get the current debugging level for a named trace. More... | |
static void | SetLogStream (std::ostream *log) |
Set the output stream to be used for log messages. More... | |
static void | SetLogLevel (LogPriority level) |
Set the default logging level. More... | |
static void | SetLogLevel (const char *trace, LogPriority level) |
Set the logging level for a named trace. More... | |
static LogPriority | GetLogLevel () |
Get the current logging level;. More... | |
static LogPriority | GetLogLevel (const char *trace) |
Get the current logging level;. More... | |
static std::ostream & | GetDebugStream () |
Return the stream associated with the error file. More... | |
static std::ostream & | GetLogStream () |
Return the stream associated with the log file. More... | |
static void | SetIndentation (int i) |
Set the indentation level for a log message. More... | |
static void | IncreaseIndentation () |
Increase the indentation level. More... | |
static void | DecreaseIndentation () |
Decrease the indentation level. More... | |
static void | ResetIndentation () |
Reset the indentation to zero. More... | |
static std::string | MakeIndent () |
[Internal method] Make an indentation for a log message. More... | |
Private Member Functions | |
LogManager () | |
Static Private Attributes | |
static ErrorPriority | fErrorPriority = EDepSim::LogManager::ErrorLevel |
static LogPriority | fLogPriority = EDepSim::LogManager::LogLevel |
static std::ostream * | fDebugStream = NULL |
static std::ostream * | fLogStream = NULL |
static std::map< std::string, ErrorPriority > | fErrorTraces |
static std::map< std::string, LogPriority > | fLogTraces |
static int | fIndentation = 0 |
Definition at line 380 of file EDepSimLog.hh.
Enumerator | |
---|---|
SilentLevel | |
ErrorLevel | |
SevereLevel | |
WarnLevel | |
DebugLevel | |
TraceLevel |
Definition at line 384 of file EDepSimLog.hh.
Enumerator | |
---|---|
QuietLevel | |
LogLevel | |
InfoLevel | |
VerboseLevel |
Definition at line 391 of file EDepSimLog.hh.
EDepSim::LogManager::~LogManager | ( | ) |
Definition at line 16 of file EDepSimLogManager.cc.
|
inlineprivate |
Definition at line 467 of file EDepSimLog.hh.
|
static |
Cause the logging and error output streams to be initialized. Basic configuration for logging occurs automatically, so this need not be called. If this is called, then it first trys to read the edeplog.config file in the current directory. If Configure is called with an argument, then the named file will be read after reading the local configuration file. If Configure is called with a named file then that file must exist. The The EDepSim::LogManager Configuration File syntax is described elsewhere.
Definition at line 387 of file EDepSimLogManager.cc.
|
static |
|
inlinestatic |
|
static |
Get the current debugging level for a named trace.
Definition at line 23 of file EDepSimLogManager.cc.
|
static |
Return the stream associated with the error file.
Definition at line 68 of file EDepSimLogManager.cc.
|
inlinestatic |
|
static |
Get the current logging level;.
Definition at line 78 of file EDepSimLogManager.cc.
|
static |
Return the stream associated with the log file.
Definition at line 102 of file EDepSimLogManager.cc.
|
static |
|
static |
[Internal method] Make an indentation for a log message.
Definition at line 124 of file EDepSimLogManager.cc.
|
static |
|
inlinestatic |
Set the default debugging level. The level parameter takes a value with type EDepSim::LogManager::ErrorPriority.
Definition at line 411 of file EDepSimLog.hh.
|
static |
Set the debugging level for a particular trace.
Definition at line 18 of file EDepSimLogManager.cc.
|
static |
Set the output stream to be used for error messages.
Definition at line 50 of file EDepSimLogManager.cc.
|
static |
|
inlinestatic |
|
static |
Set the logging level for a named trace.
Definition at line 73 of file EDepSimLogManager.cc.
|
static |
Set the output stream to be used for log messages.
Definition at line 84 of file EDepSimLogManager.cc.
|
staticprivate |
Definition at line 461 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 459 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 463 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 465 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 460 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 462 of file EDepSimLog.hh.
|
staticprivate |
Definition at line 464 of file EDepSimLog.hh.