Members
(static) Debug
The Debug Log Level
(static) Error
The Error Log Level
(static) Info
The Info Log Level
(static) Warn
The Warn Log Level
Methods
(static) getDefaultLogger() → {Logger}
Return the default logger
Returns:
The default Logger instance
- Type
- Logger
(static) logLevelToString(str) → {String}
Return a log level string from the given value
Parameters:
Name | Type | Description |
---|---|---|
str |
Integer | log level value 0-3 |
Returns:
The log level string - debug, info, warn, error or unknown if not found
- Type
- String
(static) stringToLogLevel(str) → {Integer}
Parse a string and return a Log Level value
Parameters:
Name | Type | Description |
---|---|---|
str |
String | The log level string - debug, info, warn, or error |
Returns:
The log level value 0-3, or -1 if not found
- Type
- Integer
debug(…args)
Log a Debug message. printf style parameters are supported.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The log message and params |
error(…args)
Log an Error message. printf style parameters are supported.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The log message and params |
info(…args)
Log an Info message. printf style parameters are supported.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The log message and params |
log(type, args)
Log a message with the given type and arguments. printf style parameters are supported.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The log type (DEBUG, INFO, WARN, ERROR) |
args |
Array.<Mixed> | The printf args |
warn(…args)
Log a Warning message. printf style parameters are supported.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
The log message and params |