ISpectLoggerOptions class
Configuration for ISpectLogger behavior. Per-type colors can be overridden
via customColors; defaults come from the ISpectLogType registry.
Constructors
Properties
- enabled → bool
-
final
- forwardErrorToConsole → bool
-
Whether
errorandstackTraceare forwarded to the underlyingdart:developerlog 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;
nullarguments 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 →fallbackPen→ ConsoleUtils.fallbackPen. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited