CLILoggingHandler class
A logging handler that outputs colored log messages to stderr for CLIs.
Formats logs with color-coded severity levels for better terminal readability.
Usage
AtSignLogger.root_level = 'INFO';
var logger = AtSignLogger('MyApp', loggingHandler: CLILoggingHandler());
logger.info('Application started');
- Implemented types
Constructors
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
-
call(
LogRecord record) → void -
Handles a log record by writing it to stderr with color formatting.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited