sequince.log#
Attributes#
Functions#
|
Configure Sequince logging with sensible defaults. |
Module Contents#
- sequince.log.LOGGER_NAME = 'sequince'#
- sequince.log.DEFAULT_FORMAT = '%(asctime)s sequince [%(levelname)s] %(message)s'#
- sequince.log.configure_logging(*, level=logging.INFO, fmt=DEFAULT_FORMAT, stream=None, force=False)[source]#
Configure Sequince logging with sensible defaults.
- Parameters:
level (int) – Logging level to apply. Defaults to
logging.INFO.fmt (str) – Logging format string supplied to
basicConfig.stream (Any | None) – Optional stream object for log output (passed to
basicConfig).force (bool) – When
True, reconfigure logging even if handlers already exist on the Sequince logger.
- Return type: