Global log manager.
More...
#include <LogManager.h>
|
static void | Init (const std::string &defaultloggername="", const std::string &defaultlogpath="") |
|
static LoggerPtr | AddLogger (const std::string &loggername, const std::string &logpath="") |
|
static void | RemoveLogger (const std::string &loggername) |
|
static LoggerPtr | GetLogger (const std::string &loggername) |
|
static LoggerPtr | GetDefaultLogger () |
|
static void | Clear () |
|
static void | SetLogLevel (int level) |
|
static int | GetLogLevel () |
|
static void | Trace (const std::string &msg) |
|
static void | Trace (const std::string &loggername, const std::string &msg) |
|
static void | Debug (const std::string &msg) |
|
static void | Debug (const std::string &loggername, const std::string &msg) |
|
static void | Info (const std::string &msg) |
|
static void | Info (const std::string &loggername, const std::string &msg) |
|
static void | Warning (const std::string &msg) |
|
static void | Warning (const std::string &loggername, const std::string &msg) |
|
static void | Error (const std::string &msg) |
|
static void | Error (const std::string &loggername, const std::string &msg) |
|
static void | Fatal (const std::string &msg) |
|
static void | Fatal (const std::string &loggername, const std::string &msg) |
|
|
static const int | LOG_LEVEL_TRACE = 0 |
|
static const int | LOG_LEVEL_DEBUG = 1 |
|
static const int | LOG_LEVEL_INFO = 2 |
|
static const int | LOG_LEVEL_WARNING = 3 |
|
static const int | LOG_LEVEL_ERROR = 4 |
|
static const int | LOG_LEVEL_FATAL = 5 |
|
static void esnlib::LogManager::Debug |
( |
const std::string & |
msg | ) |
|
|
static |
Log message for debugging
- Parameters
-
static void esnlib::LogManager::Error |
( |
const std::string & |
msg | ) |
|
|
static |
Log message of error
- Parameters
-
static void esnlib::LogManager::Fatal |
( |
const std::string & |
msg | ) |
|
|
static |
Log message of fatal error
- Parameters
-
static int esnlib::LogManager::GetLogLevel |
( |
| ) |
|
|
static |
Get minimum log level
- Returns
- The minimum log level
static void esnlib::LogManager::Info |
( |
const std::string & |
msg | ) |
|
|
static |
Log message for informing
- Parameters
-
static void esnlib::LogManager::Init |
( |
const std::string & |
defaultloggername = "" , |
|
|
const std::string & |
defaultlogpath = "" |
|
) |
| |
|
static |
Init global log function
- Parameters
-
defaultloggername | The default logger's name |
defaultlogpath | The default path where the log files will be stored |
static void esnlib::LogManager::SetLogLevel |
( |
int |
level | ) |
|
|
static |
Set minimum log level
- Parameters
-
static void esnlib::LogManager::Trace |
( |
const std::string & |
msg | ) |
|
|
static |
Log message for tracing
- Parameters
-
static void esnlib::LogManager::Warning |
( |
const std::string & |
msg | ) |
|
|
static |
Log message for warning
- Parameters
-
The documentation for this class was generated from the following file: