Log
log.Log(self, name, level=2)
Generate a logger.
The list of available logging levels:
- 1: debug
- 2: info
- 3: warning
- 4: error
- 5: dead
Parameters
Name | Type | Description | Default |
---|---|---|---|
name |
str | Logger identifier | required |
level |
int | Level of the logger. Anything below this level will not be logged. For instance, a logging level of 2 (info) will result in all debug messages being muted. |
2 |
Attributes
Name | Description |
---|---|
level | summary. |
Methods
Name | Description |
---|---|
add_file_handler | Add an outlet directed to a file. |
add_handler | Add an outlet to the logging object. |
dead | Create a kernel-deceased message. |
debug | Create a debug message. |
error | Create an error message. |
handle_log | Wrap logging messages. |
info | Create an info message. |
warning | Create a warning message. |