Class: Logger
utilities/logging.Logger
Constructors
constructor
• new Logger(parent
, name
, level?
, raven?
): Logger
Parameters
Name | Type |
---|---|
parent | null | Logger |
name | string |
level? | null | LogLevel |
raven? | any |
Returns
Defined in
Methods
capture
▸ capture(exc
, opts?
, ...args
): void
Parameters
Name | Type |
---|---|
exc | Error |
opts? | any |
...args | any [] |
Returns
void
Defined in
crumb
▸ crumb(...args
): any
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
any
Defined in
debug
▸ debug(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
debugColor
▸ debugColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void
Defined in
error
▸ error(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
errorColor
▸ errorColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void
Defined in
get
▸ get(name
, level?
): Logger
Parameters
Name | Type |
---|---|
name | string |
level? | LogLevel |
Returns
Defined in
hi
▸ hi(core
): void
Parameters
Name | Type |
---|---|
core | Core |
Returns
void
Defined in
info
▸ info(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
infoColor
▸ infoColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void
Defined in
invoke
▸ invoke(level
, message
, optionalParams?
): void
Parameters
Name | Type |
---|---|
level | number |
message | string |
optionalParams? | any [] |
Returns
void
Defined in
invokeColor
▸ invokeColor(level
, message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
level | number |
message | any |
colors | string | string [] |
...optionalParams | any [] |
Returns
void
Defined in
verbose
▸ verbose(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
verboseColor
▸ verboseColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void
Defined in
warn
▸ warn(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
warnColor
▸ warnColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void
Defined in
warning
▸ warning(message
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
...optionalParams | any [] |
Returns
void
Defined in
warningColor
▸ warningColor(message
, colors
, ...optionalParams
): void
Parameters
Name | Type |
---|---|
message | any |
colors | string [] |
...optionalParams | any [] |
Returns
void