ISpectLoggerOptions class

Configuration for ISpectLogger behavior. Per-type colors can be overridden via customColors; defaults come from the ISpectLogType registry.

Constructors

ISpectLoggerOptions({bool enabled = true, bool useHistory = true, bool useConsoleLogs = true, bool forwardErrorToConsole = false, int maxHistoryItems = 10000, int logTruncateLength = kDefaultStringTruncateLimit, Map<String, AnsiPen>? customColors})

Properties

enabled bool
final
forwardErrorToConsole bool
Whether error and stackTrace are forwarded to the underlying dart:developer log call.
no setter
hashCode int
The hash code for this object.
no setterinherited
logTruncateLength int
no setter
maxHistoryItems int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useConsoleLogs bool
no setter
useHistory bool
no setter

Methods

copyWith({bool? enabled, bool? useHistory, bool? useConsoleLogs, bool? forwardErrorToConsole, int? maxHistoryItems, int? logTruncateLength, Map<String, AnsiPen>? customColors}) ISpectLoggerOptions
Returns a new instance with the provided fields replaced; null arguments preserve the existing value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
penByKey(String? key, {AnsiPen? fallbackPen}) AnsiPen
Resolves the pen for key: custom override → ISpectLogType default → fallbackPenConsoleUtils.fallbackPen.
toString() String
A string representation of this object.
inherited

Operators

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