Global variables
logger
global logger instance that can be imported in other modules.
...
Note |
---|
In addition to the levels listed above, there is another level, TRACE, which is used by the internal UniversalExtension API. It is NOT available for use in developing Extensions. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
>>> # This example demonstrates how to import the global logger in other Python modules. |
...
>>> # Assume that logger is imported below in test.py that resides in the same folder as extension.py |
...
>>> from universal_extension import logger |
...
>>> logger.info('sample info message from test.py') |