JsonConsoleFormatter class
A console formatter that formats log messages as JSON.
This formatter outputs structured log data in JSON format, which is useful for log aggregation systems and structured logging pipelines.
- Inheritance
-
- Object
- ConsoleFormatter
- JsonConsoleFormatter
Constructors
- JsonConsoleFormatter(JsonConsoleFormatterOptions _options)
- Creates a new instance of JsonConsoleFormatter.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write<
TState> ({required LogEntry< TState> logEntry, ExternalScopeProvider? scopeProvider, required StringBuffer textWriter}) → void -
Writes the log message to the specified StringBuffer.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited