Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ILogFilter

interface ILogFilter
Extends IStandard Filter for log message.

Methods

isEnabled()

LogFilterResult isEnabled(string fullName, LogLevel level, Uuid? uuid)
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.

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()

void log(string fullName, LogLevel level, string message, Uuid? uuid)
Log message.

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
Last modified on October 29, 2026