LogfmtRecordSerializer class final
Serializes a v2 Record as a logfmt event frame.
Maps flatten with dotted keys, lists use compact JSON values, explicit nulls are retained, and newlineMode controls embedded newline representation. Every frame ends with one newline.
- Implemented types
Constructors
- LogfmtRecordSerializer({LogfmtNewlineMode newlineMode = LogfmtNewlineMode.visual})
-
Creates a logfmt serializer using
newlineModefor embedded newlines.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- newlineMode → LogfmtNewlineMode
-
How embedded newline characters are represented.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
Record record) → String -
Encodes
recordas one newline-terminated logfmt event frame.override -
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