ConsoleTransport
Hierarchy
LogTransport
↳ ConsoleTransport
Implements
- LogTransport
- LogTransport
Index
Constructors
Properties
Methods
Constructors
constructor
+ new ConsoleTransport(level
: LogLevel, config
: LogTransportConfig, format?
: any): ConsoleTransport
Overrides LogTransport.constructor
Creates a ConsoleTransport. Creates a ConsoleTransport.
Parameters:
Name | Type | Description |
---|---|---|
level | LogLevel | Level for which priority logging will only be done(less than or equal to this level). |
config | LogTransportConfig | LogTransportConfig instance. |
format? | any | Optional Winston's formatting. |
Returns: ConsoleTransport
Properties
client
• client: winston.Logger
Overrides LogTransport.client
Readonly
config
• config: LogTransportConfig
Overrides LogTransport.config
Readonly
level
• level: LogLevel
Implementation of LogTransport.level
Overrides LogTransport.level
logger
• logger: Logger
Implementation of LogTransport.logger
Overrides LogTransport.logger
Methods
alert
▸ alert(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.alert
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
crit
▸ crit(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.crit
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
debug
▸ debug(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.debug
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
emerg
▸ emerg(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.emerg
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
error
▸ error(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.error
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
formatEntry
▸ formatEntry(entry
: winston.LogEntry | LogEntry): string
Formats log entry.
Parameters:
Name | Type | Description |
---|---|---|
entry | winston.LogEntry | LogEntry | Winston's or Eveble's Log instance. |
Returns: string
String representation of the provided log.
info
▸ info(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.info
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
initialize
▸ initialize(): void
Overrides LogTransport.initialize
Initializes ConsoleTransport.
Returns: void
isLoggable
▸ isLoggable(level
: LogLevel): boolean
Implementation of LogTransport
Inherited from LogTransport.isLoggable
Overrides void
Parameters:
Name | Type |
---|---|
level | LogLevel |
Returns: boolean
log
▸ log(level
: LogLevel, entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from LogTransport.log
Overrides RFC5424LoggingMixin.log
Parameters:
Name | Type |
---|---|
level | LogLevel |
entry | string | LogEntry |
...args | any[] |
Returns: void
notice
▸ notice(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.notice
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void
warning
▸ warning(entry
: string | LogEntry, ...args
: any[]): void
Implementation of LogTransport
Inherited from RFC5424LoggingMixin.warning
Overrides void
Parameters:
Name | Type |
---|---|
entry | string | LogEntry |
...args | any[] |
Returns: void