log
critical ¶
Log a critical error message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
debug ¶
Log a debug message. Debug messages are prefaced with the file and line number where this function was called.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
Example:
debug_stack ¶
Log the current stack trace.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
error ¶
Log an error message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
info ¶
Log an informational message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
verbose_debug ¶
Log a verbose debug message. A verbose debug message provides additional detail, and is only logged if the verbose flag is set.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|
warning ¶
Log a warning message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
The message to log. |
required |
tag
|
str
|
A string that can be used to filter log messages. |
'untagged'
|
stacklevel
|
int
|
The number of stack frames to skip when determining the location of the log message. The default value of 3 is usually appropriate. |
3
|