Class: BrowserLogger
Hierarchy
Logger
↳
BrowserLogger
Constructors
constructor
• new BrowserLogger(name?
, enabled?
, style?
)
Parameters
Name | Type | Default value |
---|---|---|
name | string | "" |
enabled | boolean | true |
style? | string | undefined |
Overrides
Logger.constructor
Properties
_logLevel
• Protected
_logLevel: LogLevels
= "silent"
Inherited from
Logger._logLevel
allowedLogs
• Protected
allowedLogs: LogLevels
[] = []
Inherited from
Logger.allowedLogs
debug
• debug: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.debug
enabled
• Protected
Readonly
enabled: boolean
Inherited from
Logger.enabled
error
• error: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.error
group
• group: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.group
groupCollapsed
• groupCollapsed: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.groupCollapsed
groupEnd
• groupEnd: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.groupEnd
indentLevel
• Protected
indentLevel: number
= 0
Inherited from
Logger.indentLevel
info
• info: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.info
log
• log: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.log
name
• Protected
Readonly
name: string
Inherited from
Logger.name
notice
• notice: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Deprecated
use log()
instead
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.notice
verbose
• verbose: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Deprecated
use debug()
instead
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.verbose
warn
• warn: (...args
: any
[]) => void
Type declaration
▸ (...args
): void
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
void
Inherited from
Logger.warn
Accessors
logLevel
• get
logLevel(): LogLevels
Returns
LogLevels
Inherited from
Logger.logLevel
• set
logLevel(val
): void
Parameters
Name | Type |
---|---|
val | string |
Returns
void
Inherited from
Logger.logLevel
Methods
getIndent
▸ Protected
getIndent(): string
Returns
string
Inherited from
Logger.getIndent
indentDown
▸ Protected
indentDown(): void
Returns
void
Inherited from
Logger.indentDown
indentUp
▸ Protected
indentUp(): void
Returns
void
Inherited from
Logger.indentUp
levelAllowed
▸ Protected
levelAllowed(expected
): boolean
Parameters
Name | Type |
---|---|
expected | LogLevels |
Returns
boolean
Inherited from
Logger.levelAllowed
nameAndFirst
▸ Protected
nameAndFirst(first
): string
Parameters
Name | Type |
---|---|
first | string |
Returns
string
Inherited from
Logger.nameAndFirst