Constructors
constructor
- new Logger(name: string, level: string): Logger
- new Logger(name: string, level: boolean): Logger
-
Parameters
-
name: string
-
level: string
-
Parameters
-
name: string
-
level: boolean
Properties
Private level
level: number | boolean
Private Static levels
levels: {} = ...
Methods
enabled
- enabled(level: string): boolean
-
Parameters
Returns boolean
error
- error(message: string, ...optionalParams: any[]): void
-
Parameters
-
message: string
-
Rest ...optionalParams: any[]
Returns void
info
- info(message: string, ...optionalParams: any[]): void
-
Parameters
-
message: string
-
Rest ...optionalParams: any[]
Returns void
Private log
- log(level: string, message: string, ...optionalParams: any[]): void
-
Parameters
-
level: string
-
message: string
-
Rest ...optionalParams: any[]
Returns void
toLevel
- toLevel(name: string): number
-
Parameters
Returns number
trace
- trace(message: string, ...optionalParams: any[]): void
-
Parameters
-
message: string
-
Rest ...optionalParams: any[]
Returns void
warn
- warn(message: string, ...optionalParams: any[]): void
-
Parameters
-
message: string
-
Rest ...optionalParams: any[]
Returns void