Properties
Private category
category: Category
Methods
Protected buildLogMessage
- buildLogMessage(msg: string, extraArgs?: __type | any[]): MessageType
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns MessageType
Protected logDebug
- logDebug(msg: string, extraArgs?: __type | any[]): void
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns void
Protected logError
- logError(msg: string, extraArgs?: __type | any[]): void
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns void
Protected logException
- logException(msg: string, error: ErrorType, extraArgs?: undefined | __type): void
-
Parameters
-
msg: string
-
error: ErrorType
-
Optional extraArgs: undefined | __type
Returns void
Protected logInfo
- logInfo(msg: string, extraArgs?: __type | any[]): void
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns void
Protected logTrace
- logTrace(msg: string, extraArgs?: __type | any[]): void
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns void
Protected logWarning
- logWarning(msg: string, extraArgs?: __type | any[]): void
-
Parameters
-
msg: string
-
Optional extraArgs: __type | any[]
Returns void
Protected setLogLevel
- setLogLevel(level: LogLevel, applyChildren?: boolean): void
-
Parameters
-
level: LogLevel
-
Default value applyChildren: boolean = false
Returns void
WARNING: This will override the entire category configuration, not just the LogLevel. DO NOT use in production.
Keep current config settings and only update LogLevel. It is not apparent how to do this and may require a PR for https://github.com/mreuvers/typescript-logging