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