Members
(static) DEBUG :Number
The log level debug.
Type:
- Number
(static) ERROR :Number
The log level error.
Type:
- Number
(static) INFO :Number
The log level info.
Type:
- Number
(static) NONE :Number
Disable all logs.
Type:
- Number
(static) WARN :Number
The log level warn.
Type:
- Number
Methods
(static) debug(…args)
Print a debug log.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The arguments |
(static) error(…args)
Print a error log.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The arguments |
(static) info(…args)
Print a info log.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The arguments |
(static) setLogLevel(logLevel)
Set the log level.
Parameters:
Name | Type | Description |
---|---|---|
logLevel |
Number | The new log level. |
(static) setPrettify(prettify)
If plain objects should be printed prettified or not.
Parameters:
Name | Type | Description |
---|---|---|
prettify |
Boolean | If prettify plain objects or not. |
(static) setUsingDate(usingDate)
If date will appear in the log string or not.
Parameters:
Name | Type | Description |
---|---|---|
usingDate |
Boolean | If using date or not. |
(static) warn(…args)
Print a warn log.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The arguments |