SimpleLogFormatter
Hierarchy
- SimpleLogFormatter
Implements
- LogFormatter
- LogFormatter
Index
Constructors
Methods
Constructors
constructor
+ new SimpleLogFormatter(converter
: LogConverter): SimpleLogFormatter
Creates an instance of SimpleLogFormatter. Creates an instance of SimpleLogFormatter.
Parameters:
Name | Type | Description |
---|---|---|
converter | LogConverter | LogEntry converter instance. |
Returns: SimpleLogFormatter
Methods
format
▸ format(entry
: winston.LogEntry | LogEntry): string
Converts log entry to simple message.
Parameters:
Name | Type | Description |
---|---|---|
entry | winston.LogEntry | LogEntry | Winston's or Eveble's instance implementing LogEntry interface. |
Returns: string
String representation of the provided log as simple message.