Default log output formatter implementation

Implements

Constructors

Methods

Constructors

  • Creates a new default log output formatter outputFormat: The output format to use when formatting log events (defaults to "{Timestamp}: [{Level}]: {Message}{Exception}") The following placeholders can be used in the output format: {Timestamp}: The timestamp of the log event {Level}: The log level of the log event {Message}: The message of the log event {Exception}: The exception of the log event {PropertyName}: The properties of the log event (where PropertyName is the name of the property)

    Parameters

    • OptionaloutputFormat: string

    Returns DefaultFormatter

Methods

  • Formats a log event into a string using the output format event: The log event to format into a string Returns the formatted log event

    Parameters

    Returns string