Logger
@codification/cutwater-logging > Logger
Interface
A Logger is used to log messages for a specific system or application component.
beta:
Hierarchy
Logger
Properties
Methods
Properties
appender
● appender: Appender
Defined in Logger.ts:24
The destination for messages this logger receives.
level
● level: Level | undefined
Defined in Logger.ts:19
The level at which this logger will output messages.
name
● name: string
Defined in Logger.ts:14
The human readable name of this logger instance.
Methods
debug
▸ debug(...input: any
[]): boolean
Defined in Logger.ts:76
Creates a LoggingEvent of debug priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
error
▸ error(...input: any
[]): boolean
Defined in Logger.ts:49
Creates a LoggingEvent of error priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
fatal
▸ fatal(...input: any
[]): boolean
Defined in Logger.ts:40
Creates a LoggingEvent of fatal priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
info
▸ info(...input: any
[]): boolean
Defined in Logger.ts:67
Creates a LoggingEvent of info priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
isEnabled
▸ isEnabled(level: Level): boolean
Defined in Logger.ts:31
Returns if this logger will output messages at the specified level.
Parameters:
Name | Type | Description |
---|---|---|
level | Level | the level to check |
Returns: boolean
log
▸ log(...input: any
[]): boolean
Defined in Logger.ts:93
Supplied for compatibility with other logging systems. Specific level varies by implementation.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
trace
▸ trace(...input: any
[]): boolean
Defined in Logger.ts:85
Creates a LoggingEvent of trace priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean
warn
▸ warn(...input: any
[]): boolean
Defined in Logger.ts:58
Creates a LoggingEvent of warn priority, returning true
if the message will be output based on this logger's level.
Parameters:
Name | Type | Description |
---|---|---|
Rest input | any [] | data describing the logging event |
Returns: boolean