Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Global variables

logger

global logger instance that can be imported in other modules.

The following log levels are officially supported:

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG
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.


Examples

>>> # 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')