qml.logging

This module enables support for log-level messaging throughout PennyLane, following the native Python logging framework interface. Please see the PennyLane logging development guidelines, and the official Python documentation for details on usage https://docs.python.org/3/library/logging.html

Functions

config_path()

This method returns the full absolute path to the the log_config.toml configuration file.

enable_logging()

This method allows to selectively enable logging throughout PennyLane, following the configuration options defined in the log_config.toml file.

Classes

DebugOnlyFilter([name])

Filters logs that are less verbose than the DEBUG level (CRITICAL, ERROR, WARN & INFO).

DefaultFormatter([fmt, datefmt, style, validate])

This formatter has the default rules used for formatting PennyLane log messages.

LocalProcessFilter()

Filters logs not originating from the current executing Python process ID.

SimpleFormatter([fmt, datefmt, style, validate])

This formatter has a simplified layout and rules used for formatting PennyLane log messages.