Class: ConsoleLogger
Default logger which logs to stdout and stderr
Implements
Constructors
new ConsoleLogger()
new ConsoleLogger(): ConsoleLogger
Returns
Defined in
Methods
debug()
debug(...msg): void
Log a debug message
Parameters
• ...msg: any
[]
Returns
void
Implementation of
Defined in
error()
error(...msg): void
Log an error message
Parameters
• ...msg: any
[]
Returns
void
Implementation of
Defined in
getLevel()
getLevel(): LogLevel
Return the current LogLevel.
Returns
Implementation of
Defined in
info()
info(...msg): void
Log an info message
Parameters
• ...msg: any
[]
Returns
void
Implementation of
Defined in
setLevel()
setLevel(level): void
Sets the instance's log level so that only messages which are equal or more severe are output to the console.
Parameters
• level: LogLevel
Returns
void
Implementation of
Defined in
setName()
setName(name): void
Set the instance's name, which will appear on each log line before the message.
Parameters
• name: string
Returns
void
Implementation of
Defined in
warn()
warn(...msg): void
Log a warning message
Parameters
• ...msg: any
[]
Returns
void