DefaultLoggerFormatter class

A collection of default formatters for log messages.

Constructors

DefaultLoggerFormatter()

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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

consoleFormatter LoggerFormatter
Console log message formatter with ANSI color codes. Formats the log message with colored timestamp, level, scope, message, and exception if present. And uses ansicolors to differentiate log levels.
getter/setter pair
defaultDateFormatter LoggerDateFormatter
Default date formatter that converts DateTime to ISO 8601 string with space separator.
getter/setter pair
defaultFormatter LoggerFormatter
Default log message formatter. Formats the log message with timestamp, level, scope, message, and exception if present.
getter/setter pair
defaultJsonDateFormatter LoggerDateFormatter
Default date formatter for JSON logs that converts DateTime to UTC ISO 8601 string.
getter/setter pair
jsonLoggerFormatter LoggerFormatter
JSON log message formatter. Formats the log message as a JSON object with timestamp, level, scope, message, and exception if present.
getter/setter pair