Interface ILogFilter
interface ILogFilter
Extends IStandard
Filter for log message.
Methods
isEnabled()
Process the log message. If this function returns HANDLED, then log message is handled at this level and processing stops. If it returns NOT_HANDLED, then the message handling continues to the higher-level To prevent this method from being called repeatedly in critical path for filtering debug messages, once a filter is subscribed, the method should return the same result till this filter is unsubscribed and re-subscribed. A log filter can ignore a message, or delegate processing to some other filter.LogFilterResultisEnabled(stringfullName,LogLevellevel,Uuid?uuid)
Parameters
fullName
string — Required
name of the log message
level
LogLevel — Required
logging level
uuid
Uuid? — Optional
if present, UUID of the message
Returns
LogFilterResult
LogFilterResult returns
LogFilterResult::handle true if the log message was processed
LogFilterResult::bubble true if the message is to bubble up to parent
log()
Log message.voidlog(stringfullName,LogLevellevel,stringmessage,Uuid?uuid)
Parameters
fullName
string — Required
full name of the logger
level
LogLevel — Required
level to log at
message
string — Required
log message
uuid
Uuid? — Optional
if present, UUID of the message

