SimpleLogFormatter

Hierarchy

  • SimpleLogFormatter

Implements

Index

Constructors

Methods

Constructors

constructor

+ new SimpleLogFormatter(converter: LogConverter): SimpleLogFormatter

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

Parameters:

NameTypeDescription
converterLogConverterLogEntry converter instance.

Returns: SimpleLogFormatter

Methods

format

format(entry: winston.LogEntry | LogEntry): string

Converts log entry to simple message.

Parameters:

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

Returns: string

String representation of the provided log as simple message.