qml.logging.enable_logging¶
-
enable_logging
(config_file='log_config.toml')[source]¶ This method allows to selectively enable logging throughout PennyLane, following the configuration options defined in the
log_config.toml
file.Enabling logging through this method will override any externally defined logging configurations.
- Parameters
config_file (str) – The path to a given log configuration file, parsed as TOML and adhering to the
logging.config.dictConfig
end-point. The default argument uses the PennyLane ecosystem log-file configuration, located at the directory returned frompennylane.logging.config_path()
.
Example
>>> qml.logging.enable_logging()
code/api/pennylane.logging.enable_logging
Download Python script
Download Notebook
View on GitHub