Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

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.


Example
>>> # 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')
  • No labels