Application-implemented logging interface for the builder, engine and runtime. More...
Public Types | |
enum | Severity : int32_t { Severity::kINTERNAL_ERROR = 0, Severity::kERROR = 1, Severity::kWARNING = 2, Severity::kINFO = 3, Severity::kVERBOSE = 4 } |
Public Member Functions | |
virtual void | log (Severity severity, const char *msg)=0 |
A callback implemented by the application to handle logging messages;. More... | |
virtual | ~ILogger () |
Application-implemented logging interface for the builder, engine and runtime.
Note that although a logger is passed on creation to each instance of a IBuilder or safe::IRuntime interface, the logger is internally considered a singleton, and thus multiple instances of safe::IRuntime and/or IBuilder must all use the same logger.
|
strong |
The severity corresponding to a log message.
|
inlinevirtual |
|
pure virtual |
A callback implemented by the application to handle logging messages;.
severity | The severity of the message. |
msg | The log message, null terminated. |
Implemented in sample::Logger.