Constructors
constructor
- new Logger(moduleName, logLevelConfig?): Logger
Parameters
- moduleName: string
- logLevelConfig: LogLevelConfig = globalLogLevelConfig
Properties
_logLevel
_logLevel: number
_moduleName
_moduleName: string
Methods
createInstance
- createInstance(logLevelConfig?): Logger
debug
- debug(...messages): void
Returns void
error
- error(...messages): void
Returns void
fatal
- fatal(...messages): void
Returns void
info
- info(...messages): void
Returns void
log
- log(logLevel, ...messages): void
Parameters
- logLevel: number
Rest
...messages: any[]
Returns void
setLogLevel
- setLogLevel(logLevel): void
Parameters
- logLevel: string | number
Returns void
warn
- warn(...messages): void
Returns void