photons.log module

Logging configuration.

photons.log.env_level(key='PHOTONS_LOG_LEVEL')[source]

Read the logging level from an environment variable.

Return type:

int

photons.log.set_block(*names)[source]

Block all messages from the specified loggers.

Return type:

None

photons.log.set_debug(*names)[source]

Show DEBUG (and above) messages from the specified loggers.

Return type:

None

photons.log.set_errors(*names)[source]

Show ERROR (and above) messages from the specified loggers.

Return type:

None

photons.log.set_info(*names)[source]

Show INFO (and above) messages from the specified loggers.

Return type:

None

photons.log.set_level(name, level)[source]

Set the logging level for a particular logger.

Return type:

None

photons.log.set_warnings(*names)[source]

Show WARNING (and above) messages from the specified loggers.

Return type:

None