ibex_bluesky_core.log

Bluesky specific logging configuration.

Note: logging.config.fileconfig sets the global, application-level, logging policies. We are a library so should not set application-level policies. Instead just quietly add handlers for our own logger and the bluesky logger.

Members

file_handler

Get the file handler for ibex_bluesky_core and related loggers.

set_bluesky_log_levels

Set log level of bluesky-related loggers: ibex_bluesky_core, bluesky & ophyd_async.

setup_logging

Set up logging.

ibex_bluesky_core.log.file_handler() TimedRotatingFileHandler[source]

Get the file handler for ibex_bluesky_core and related loggers.

Cached so that this function does not run on import, but multiple invocations always return the same handler object.

ibex_bluesky_core.log.set_bluesky_log_levels(level: str | int | None = None) None[source]

Set log level of bluesky-related loggers: ibex_bluesky_core, bluesky & ophyd_async.

Parameters:

level – a log level string or integer, or None. If None, will set INFO level by default for loggers which have not previously been configured, but will not change log levels for already-configured loggers.

ibex_bluesky_core.log.setup_logging() None[source]

Set up logging.