Qiskit Experiment Service (qiskit_ibm_experiment
)¶
Logging¶
Qiskit IBM Experiment Service uses the qiskit_ibm_experiment
logger.
Two environment variables can be used to control the logging:
QISKIT_IBM_EXPERIMENT_LOG_LEVEL
: Specifies the log level to use. If an invalid level is set, the log level defaults toWARNING
. The valid log levels areDEBUG
,INFO
,WARNING
,ERROR
, andCRITICAL
(case-insensitive). If the environment variable is not set, then the parent logger’s level is used, which also defaults toWARNING
.
QISKIT_IBM_EXPERIMENT_LOG_FILE
: Specifies the name of the log file to use. If specified, messages will be logged to the file only. Otherwise messages will be logged to the standard error (usually the screen).
For more advanced use, you can modify the logger itself. For example, to manually set the level
to WARNING
:
import logging
logging.getLogger('qiskit_ibm_experiment').setLevel(logging.WARNING)
Classes¶
Exceptions¶
|
Base class for errors raised by the experiment service modules. |
|
Errors raised when an experiment entry already exists. |
|
Errors raised when an experiment entry cannot be found. |