![]() |
XII Release 0.1.0
|
A log interface implementation that converts a log event into a xiiLogEntry and calls a delegate with it. More...
#include <LogEntry.h>
Public Types | |
using | Callback = xiiDelegate<void(xiiLogEntry&)> |
Public Member Functions | |
xiiLogEntryDelegate (Callback callback, xiiLogMsgType::Enum logLevel=xiiLogMsgType::All) | |
Log events will be delegated to the given callback. | |
virtual void | HandleLogMessage (const xiiLoggingEventData &le) override |
Override this function to handle logging events. | |
![]() | |
XII_ALWAYS_INLINE void | SetLogLevel (xiiLogMsgType::Enum logLevel) |
LogLevel is between xiiLogEventType::None and xiiLogEventType::All and defines which messages will be logged and which will be filtered out. | |
XII_ALWAYS_INLINE xiiLogMsgType::Enum | GetLogLevel () |
Returns the currently set log level. | |
A log interface implementation that converts a log event into a xiiLogEntry and calls a delegate with it.
A typical use case is to re-route and store log messages in a scope:
|
overridevirtual |
Override this function to handle logging events.
Implements xiiLogInterface.