ApplicationLoggingListener class final
Jetleaf's application-level LoggingListener implementation.
This listener acts as a bridge between the Jetleaf logging system and
the active Environment. It configures a Logger instance per
application or per log tag, using environment-driven settings from
JetleafLoggingProperty.
Features:
- Creates a lazily-initialized Logger per tag.
- Applies formatting and output options (
pretty,flat,json, etc.). - Supports both global (
logging.level.all) and tag-specific (logging.level.<tag>) log levels. - Filters log messages before delegating to the Logger.
Example:
final listener = ApplicationLoggingListener(MyApp, environment);
LoggingSystem.addListener(listener);
- Implemented types
Constructors
-
ApplicationLoggingListener(Class<
Object> _applicationClass, Environment? _environment) - Jetleaf's application-level LoggingListener implementation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLog(
LogLevel level, dynamic message, {String? tag, Object? error, StackTrace? stackTrace}) → void -
Called when a new log entry is emitted by a logger.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited