ConsoleFormatter class final

Default formatter for console log output.

Handles formatting of log messages with borders, colors, and proper structure for console display.

Implement LogFormatter to create custom formatters.

Constructors

ConsoleFormatter({String lineSymbol = '─', int maxLineWidth = 110, bool enableColors = true, DateFormat? dateFormat})
Creates a new ConsoleFormatter instance.

Properties

dateFormat DateFormat
Date formatter for timestamps.
final
enableColors bool
Whether to use ANSI colors in output.
final
hashCode int
The hash code for this object.
no setterinherited
lineSymbol String
Character used for separator lines.
final
maxLineWidth int
Maximum width of separator lines.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(FlexLog log) String
Formats a log data object into a displayable string.
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