icedb
version 0.5.1
Snow particle scattering database API
|
Classes | |
struct | log_properties |
Typedefs | |
typedef void(* | log_handler_ft) (const char *, const char *, PRIORITIES) |
Enumerations | |
enum | PRIORITIES { ICEDB_LOG_DEBUG_2, ICEDB_LOG_DEBUG_1, ICEDB_LOG_INFO, ICEDB_LOG_NORMAL, ICEDB_LOG_NOTIFICATION, ICEDB_LOG_DEBUG_WARNING, ICEDB_LOG_ERROR, ICEDB_LOG_CRITICAL } |
Functions | |
void | emit_log (const std::string &channel, const std::string &message, PRIORITIES p) |
void | register_log_handler (log_handler_ft p) |
void | emit_log (const char *channel, const char *message, PRIORITIES p) |
void | setupLogging (int argc, char **argv, const log_properties *lps) |
typedef void(* icedb::logging::log_handler_ft) (const char *, const char *, PRIORITIES) |
Definition at line 27 of file logging.hpp.
Enumerator | |
---|---|
ICEDB_LOG_DEBUG_2 | |
ICEDB_LOG_DEBUG_1 | |
ICEDB_LOG_INFO | |
ICEDB_LOG_NORMAL | |
ICEDB_LOG_NOTIFICATION | |
ICEDB_LOG_DEBUG_WARNING | |
ICEDB_LOG_ERROR | |
ICEDB_LOG_CRITICAL |
Definition at line 10 of file logging.hpp.
void icedb::logging::emit_log | ( | const std::string & | channel, |
const std::string & | message, | ||
PRIORITIES | p | ||
) |
Definition at line 16 of file logging.cpp.
void icedb::logging::emit_log | ( | const char * | channel, |
const char * | message, | ||
PRIORITIES | p | ||
) |
Definition at line 24 of file logging.cpp.
References ICEDB_writeDebugString(), anonymous_namespace{logging.cpp}::logConsoleThreshold, anonymous_namespace{logging.cpp}::logDebugThreshold, anonymous_namespace{logging.cpp}::logHandler, and anonymous_namespace{logging.cpp}::lOut.
void icedb::logging::register_log_handler | ( | log_handler_ft | p | ) |
Definition at line 23 of file logging.cpp.
References anonymous_namespace{logging.cpp}::logHandler.
void icedb::logging::setupLogging | ( | int | argc, |
char ** | argv, | ||
const log_properties * | lps | ||
) |
Definition at line 47 of file logging.cpp.
References icedb::logging::log_properties::consoleLogThreshold, icedb::logging::log_properties::debuggerLogThreshold, anonymous_namespace{logging.cpp}::logConsoleThreshold, anonymous_namespace{logging.cpp}::logDebugThreshold, anonymous_namespace{logging.cpp}::logFile, icedb::logging::log_properties::logFile, and anonymous_namespace{logging.cpp}::lOut.