Type Alias FormatterFunction

FormatterFunction: ((logRecord: LogRecord) => string)

A function type that defines the structure of a formatter function.

Type declaration

    • (logRecord): string
    • Parameters

      • logRecord: LogRecord

        The log record that needs to be formatted.

      Returns string

      A string representation of the log record.