SimpleLayout
@codification/cutwater-logging > SimpleLayout
Class
Specifies a simple, default layout for logging messages of the following form:
TIMESTAMP - LOGGER_NAME - LEVEL - MESSAGE
Hierarchy
SimpleLayout
Implements
Properties
Methods
Properties
timestampFormat
● timestampFormat: string
= "YYYY-MM-DD HH:mm:ss,SSS"
Defined in SimpleLayout.ts:18
The format to be used for timestamps in this layout.
Methods
format
▸ format(event: LoggingEvent): string
Implementation of Layout.format
Defined in SimpleLayout.ts:20
Parameters:
Name | Type |
---|---|
event | LoggingEvent |
Returns: string