SystemdConsoleFormatter class

A console formatter that formats log messages for systemd journal.

This formatter outputs log messages in a format suitable for systemd's structured logging, including priority levels compatible with syslog.

Inheritance

Constructors

SystemdConsoleFormatter(SystemdConsoleFormatterOptions _options)
Creates a new instance of SystemdConsoleFormatter.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Gets the name associated with the console log formatter.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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