![]() |
Plasma Engine
2.0
|
A log interface implementation that converts a log event into a plLogEntry and calls a delegate with it. More...
#include <LogEntry.h>
Public Types | |
using | Callback = plDelegate<void(plLogEntry&)> |
Public Member Functions | |
plLogEntryDelegate (Callback callback, plLogMsgType::Enum logLevel=plLogMsgType::All) | |
Log events will be delegated to the given callback. | |
virtual void | HandleLogMessage (const plLoggingEventData &le) override |
Override this function to handle logging events. | |
![]() | |
PL_ALWAYS_INLINE void | SetLogLevel (plLogMsgType::Enum logLevel) |
LogLevel is between plLogEventType::None and plLogEventType::All and defines which messages will be logged and which will be filtered out. | |
PL_ALWAYS_INLINE plLogMsgType::Enum | GetLogLevel () |
Returns the currently set log level. | |
A log interface implementation that converts a log event into a plLogEntry 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 plLogInterface.