10Duke Enterprise C++ Client
|
Logging support.
Logging for the client. This is currently very, very simple.
Classes | |
class | Logger |
Simple logger interface. More... | |
class | StdOutLogger |
Very, very simple logger, which dumps all to std::out. More... | |
Functions | |
void | debug (const char *message) |
Write message to global logger at DEBUG-level. | |
void | debug (const std::string &message) |
Write message to global logger at DEBUG-level. | |
void | error (const char *message) |
Write message to global logger at ERROR-level. | |
void | error (const std::string &message) |
Write message to global logger at ERROR-level. | |
void | info (const char *message) |
Write message to global logger at INFO-level. | |
void | info (const std::string &message) |
Write message to global logger at INFO-level. | |
void | trace (const char *message) |
Write message to global logger at TRACE-level. | |
void | trace (const std::string &message) |
Write message to global logger at TRACE-level. | |
void | warning (const char *message) |
Write message to global logger at WARNING-level. | |
void | warning (const std::string &message) |
Write message to global logger at WARNING-level. | |
std::shared_ptr< tenduke::log::Logger > | getGlobalLogger () |
Returns the global logger. | |
std::shared_ptr<::tenduke::log::Logger > | setGlobalLogger (const std::shared_ptr<::tenduke::log::Logger > &logger) |
Sets the global logger. | |
void tenduke::log::debug | ( | const char * | message | ) |
Write message to global logger at DEBUG-level.
message | - |
void tenduke::log::debug | ( | const std::string & | message | ) |
Write message to global logger at DEBUG-level.
message | - |
void tenduke::log::error | ( | const char * | message | ) |
Write message to global logger at ERROR-level.
message | - |
void tenduke::log::error | ( | const std::string & | message | ) |
Write message to global logger at ERROR-level.
message | - |
std::shared_ptr< xdlog::Logger > tenduke::log::getGlobalLogger | ( | ) |
Returns the global logger.
void tenduke::log::info | ( | const char * | message | ) |
Write message to global logger at INFO-level.
message | - |
void tenduke::log::info | ( | const std::string & | message | ) |
Write message to global logger at INFO-level.
message | - |
std::shared_ptr<::tenduke::log::Logger > tenduke::log::setGlobalLogger | ( | const std::shared_ptr<::tenduke::log::Logger > & | logger | ) |
Sets the global logger.
This method is not thread safe.
logger | the new global logger. |
void tenduke::log::trace | ( | const char * | message | ) |
Write message to global logger at TRACE-level.
message | - |
void tenduke::log::trace | ( | const std::string & | message | ) |
Write message to global logger at TRACE-level.
message | - |
void tenduke::log::warning | ( | const char * | message | ) |
Write message to global logger at WARNING-level.
message | - |
void tenduke::log::warning | ( | const std::string & | message | ) |
Write message to global logger at WARNING-level.
message | - |