![]() |
ezEngine Release 25.08
|
A log interface implementation that converts a log event into a ezLogEntry and calls a delegate with it. More...
#include <LogEntry.h>
Public Types | |
using | Callback = ezDelegate< void(ezLogEntry &)> |
Public Member Functions | |
ezLogEntryDelegate (Callback callback, ezLogMsgType::Enum logLevel=ezLogMsgType::All) | |
Log events will be delegated to the given callback. | |
virtual void | HandleLogMessage (const ezLoggingEventData &le) override |
Override this function to handle logging events. | |
![]() | |
EZ_ALWAYS_INLINE void | SetLogLevel (ezLogMsgType::Enum logLevel) |
LogLevel is between ezLogEventType::None and ezLogEventType::All and defines which messages will be logged and which will be filtered out. | |
EZ_ALWAYS_INLINE ezLogMsgType::Enum | GetLogLevel () |
Returns the currently set log level. | |
A log interface implementation that converts a log event into a ezLogEntry 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 ezLogInterface.