LoggerConfig class

Logger configuration.

Controls minimum level, output format, sink targets, sampling, and redaction settings.

Constructors

LoggerConfig({LogLevel minLevel = LogLevel.info, LogFormat format = LogFormat.json, List<String> outputs = const ['console'], LogSampling? sampling, RedactionConfig? redaction})
const

Properties

format → LogFormat
Output format.
final
hashCode → int
The hash code for this object.
no setterinherited
minLevel → LogLevel
Minimum log level.
final
outputs → List<String>
Output sink identifiers (e.g., 'console', 'file').
final
redaction → RedactionConfig?
Redaction configuration for sensitive data.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampling → LogSampling?
Sampling configuration for high-volume logs.
final

Methods

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