xyzspaces.logconf module

This module configures logging.

xyzspaces.logconf.setup_logging(default_path='config/logconfig.json', default_level=40, env_key='XYZ_LOG_CONFIG')[source]

Set up logging configuration.

  • default_path (str) – A string representing the path of the config file in JSON format.

  • default_level (int) – An int representing logging level.

  • env_key (str) – A string representing environment variable to enable logging to file.

class xyzspaces.logconf.NullHandler(level=0)[source]

Bases: logging.Handler

NullHandler class is a ‘no-op’ handler for use by library developers.


Skip the emit record. This is used to give preference to user.