Abstract
Readonly
Abstract
messageThe log message to format and write.
Abstract
changeChanges the message to write.
A field may decide to modify the message e.g. to exclude some of its properties from further formatting.
New message to format.
Extracts message details, then changes the message to write by excluding the extracted details from it.
Extracted message details.
Extracts a property from message details, then changes the message to write by excluding the extracted property from it.
Rest
...path: (string | symbol)[]A path to details property to extract. Empty path means extracting of all details.
Extracted message detail, or undefined
if there is no such detail.
Abstract
formatFormats a log message by the given field.
The field to format the message by.
Optional
message: ZLogMessageThe message to format. Current message by default.
Either a formatted field string, or undefined
if nothing to format.
Abstract
writeWrites elements of arbitrary iterable.
Writes each element by writeValue, and separates them with comma.
An iterable of elements to write.
Writes arbitrary key/value pair.
Ignores properties with undefined values.
Writes value by writeValue method. Separates key and value by colon.
Property key to write.
Property value to write.
Writes arbitrary object value.
For array, writes its elements by writeElements, and encloses them into square brackets.
For anything else, writes object properties by writeProperties, and encloses them into curly brackets.
Object value to write.
Writes object properties.
Writes own object properties by writeKeyAndValue.
Object value to write.
Protected
writeWrites a value not recognized by writeValue.
Writes a string representation of the value.
A value to format.
Generated using TypeDoc
Log message writer.
The log fields format and write log message contents using this writer.
The instance of this class can be reused by different messages and fields.