Constructors
Private
constructor
- new Logger(): Logger
-
Properties
Private
log
log: any
Private
logRaw
logRaw: any
name
name: string
tags
tags: string[]
Static
Private
initialized
initialized: any
Methods
debug
- debug(...message): void
-
Returns void
error
- error(...message): void
-
Returns void
fatal
- fatal(...message): void
-
Returns void
info
- info(...message): void
-
Returns void
trace
- trace(...message): void
-
Returns void
warn
- warn(...message): void
-
Returns void
Static
getLogger
- getLogger(name, ...tags): Logger
-
Parameters
-
name: string
-
Rest
...tags: string[]
A new Logger.
Static
init
- init(): void
-
Returns void
Static
setFilter
- setFilter(filter): void
-
Returns void
Static
setFormatFunction
- setFormatFunction(func): void
-
Parameters
-
func: ((level, logger, message) => string)
-
- (level, logger, message): string
-
Returns string
Returns void
Static
setJsonFormatter
- setJsonFormatter(formatter): void
-
Returns void
Static
setLevel
- setLevel(level): void
-
Returns void
The Logger class.