netxsimdg
|
A class to provide general logging facilities. More...
#include <Logged.hpp>
Static Public Member Functions | |
static void | configure () |
Static function that configures the logger. | |
static void | log (const std::string &message, const level lvl=level::NOTICE) |
Logs a message at the given log level, or default to level::NOTICE. | |
static void | trace (const std::string &message) |
Logs a message at level::TRACE, intended for tracing code execution. | |
static void | debug (const std::string &message) |
Logs a message at level::DEBUG_LVL, intended for code debugging. | |
static void | info (const std::string &message) |
Logs a message at level::INFO, intended for informational messages that would not normally be shown. | |
static void | notice (const std::string &message) |
Logs a message at level::NOTICE, intended for messages that would appear during normal execution. | |
static void | warning (const std::string &message) |
Logs a message at level::WARNING, intended for abnormal conditions that do not affect the continuing execution of the model. | |
static void | error (const std::string &message) |
Logs a message at level::ERROR, intended for when the model reaches an unrecoverable state. | |
static void | critical (const std::string &message) |
Logs a message at level::CRITICAL, intended for critical situations, including detection of problems with the hardware or software environment. | |
static void | alert (const std::string &message) |
Logs a message at level::ALERT. Probably not needed for a geophysical model. | |
static void | emergency (const std::string &message) |
Logs a message at level::EMERGENCY. Probably not needed for a geophysical model. | |
Static Public Attributes | |
static const std::map< std::string, level > | levelNames |
A class to provide general logging facilities.
Definition at line 16 of file Logged.hpp.
anonymous enum |
Definition at line 34 of file Logged.hpp.
|
strong |
Definition at line 20 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::ALERT. Probably not needed for a geophysical model.
message | The message to be logged. |
Definition at line 106 of file Logged.hpp.
|
static |
Static function that configures the logger.
Definition at line 55 of file Logged.cpp.
|
inlinestatic |
Logs a message at level::CRITICAL, intended for critical situations, including detection of problems with the hardware or software environment.
message | The message to be logged. |
Definition at line 99 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::DEBUG_LVL, intended for code debugging.
The enum constant is called DEBUG_LVL to avoid clashes when the macro constant DEBUG is defined as a result of compiling a Debug build.
message | The message to be logged. |
Definition at line 63 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::EMERGENCY. Probably not needed for a geophysical model.
message | The message to be logged. |
Definition at line 113 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::ERROR, intended for when the model reaches an unrecoverable state.
message | The message to be logged. |
Definition at line 91 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::INFO, intended for informational messages that would not normally be shown.
message | The message to be logged. |
Definition at line 70 of file Logged.hpp.
|
static |
Logs a message at the given log level, or default to level::NOTICE.
message | The message to be logged. |
lvl | The level at which to log the message. Defaults to level::NOTICE if not provided. |
Definition at line 71 of file Logged.cpp.
|
inlinestatic |
Logs a message at level::NOTICE, intended for messages that would appear during normal execution.
message | The message to be logged. |
Definition at line 77 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::TRACE, intended for tracing code execution.
message | The message to be logged. |
Definition at line 54 of file Logged.hpp.
|
inlinestatic |
Logs a message at level::WARNING, intended for abnormal conditions that do not affect the continuing execution of the model.
message | The message to be logged. |
Definition at line 84 of file Logged.hpp.
|
static |
Definition at line 39 of file Logged.hpp.