ModernConsoleFormatter class
Modern console formatter with colors, emojis, and structured output
Constructors
- ModernConsoleFormatter.new()
-
factory
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
- Creates a footer for log sections
-
createHeader(
String title, {bool useColors = true}) → String - Creates a header for log sections
-
createSeparator(
{bool useColors = true, int length = 80}) → String - Creates a separator line
-
formatList(
List items, {bool useColors = true}) → String - Formats a list of items
-
formatLog(
{required LogLevel level, required String message, required DateTime timestamp, LogEvent? event, Map< String, dynamic> ? context, StackTrace? stackTrace, bool useColors = true, bool useEmojis = true, bool showTimestamp = true, bool showContext = true}) → String - Formats a log message with modern styling
-
formatTable(
Map< String, dynamic> data, {bool useColors = true}) → String - Formats a table of key-value pairs
-
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