LoggerSettings class

Configuration settings for ISpectLogger logger.

This class defines how logs are formatted, colored, and displayed.

Constructors

LoggerSettings({Map<LogLevel, AnsiPen>? colors, bool enable = true, String defaultTitle = 'Log', LogLevel level = LogLevel.verbose, String lineSymbol = '─', int maxLineWidth = 110, bool enableColors = true})
Creates an instance of LoggerSettings with customizable options.

Properties

colors Map<LogLevel, AnsiPen>
ANSI colors for log levels.
final
defaultTitle String
Default log title.
final
enable bool
Whether logging is enabled.
getter/setter pair
enableColors bool
Whether ANSI colors are enabled in logs.
final
hashCode int
The hash code for this object.
no setterinherited
level LogLevel
Minimum log level required for a log to be recorded.
final
lineSymbol String
Symbol used for log line separators.
final
maxLineWidth int
Maximum width for log messages.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Map<LogLevel, AnsiPen>? colors, bool? enable, String? defaultTitle, LogLevel? level, String? lineSymbol, int? maxLineWidth, bool? enableColors}) LoggerSettings
Creates a new instance of LoggerSettings with modified properties.
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