11.1.6.1. Logging

This module setups the logging for PySpice.

PySpice.Logging.Logging.setup_logging(application_name='PySpice', config_file='logging.yml', logging_level=None)[source]

Setup the logging.

Logging configuration is set by a YAML file given by config_file.

Alternatively we can set the logging level using the environment variable ‘PySpiceLogLevel’ or using logging_level, level can be a integer or a string. The logging level is set by precedence using :

  • logging_level parameter if not None

  • ‘PySpiceLogLevel’ environment variable set to: CRITICAL, ERROR, WARNING, INFO, DEBUG

  • else logging.yml file settings

Note: logging level NOTSET = 0