DetailedLogFormatter

Hierarchy

  • DetailedLogFormatter

Implements

Index

Constructors

Methods

Constructors

constructor

+ new DetailedLogFormatter(converter: LogConverter, chalk: any): DetailedLogFormatter

Creates an instance of SimpleLogFormatter. Creates an instance of SimpleLogFormatter.

Parameters:

NameTypeDescription
converterLogConverterLogEntry converter instance.
chalkany-

Returns: DetailedLogFormatter

Methods

format

format(entry: winston.LogEntry | LogEntry, config: LogTransportConfig): string

Implementation of LogFormatter

Converts log entry to detailed message.

Parameters:

NameTypeDescription
entrywinston.LogEntry | LogEntryWinston's or Eveble's instance implementing LogEntry interface.
configLogTransportConfigLogTransportConfig instance.

Returns: string

String representation of the provided log as detailed message.