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.
- Parameters
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.