du.system.log
Module for logging operations.severity
du.system.log.severity(level)
Sets severity level for the logger. Available severity levels (in increasing severity order): debug, info, warning and error. Either the full name or the initial of the level is passed.
| arg | type | description |
|---|---|---|
| level | string | Severity level to set logger to. |
d
du.system.log.d(Tag, Log)
Prints a debug message on the console if severity level is at least 'debug'.
| arg | type | description |
|---|---|---|
| Tag | tag | to use for the log. |
| Log | message | message. |
i
du.system.log.i(tag, message)
Prints an info message on console if severity level is at least 'info'.
| arg | type | description |
|---|---|---|
| tag | string | Tag to use for the log. |
| message | string | Log message. |
w
du.system.log.w(tag, message)
Prints a warning message to console if severity level is at least 'warning'.
| arg | type | description |
|---|---|---|
| tag | string | Tag to use for the log. |
| message | string | Log message. |
e
du.system.log.e(tag, message)
Prints an error message to console if severity level is at least 'error'.
| arg | type | description |
|---|---|---|
| tag | string | Tag to use for the log. |
| message | string | Log message. |