client.logging

Configuration setting for client-side only.

Attributes

_DEFAULT_LOG_FORMAT

default_config

Classes

JobmonLoggerConfig

A class to automatically format and attach handlers to client logging modules.

Module Contents

client.logging._DEFAULT_LOG_FORMAT = '%(asctime)s [%(name)-12s] %(module)s %(levelname)-8s: %(message)s'[source]
client.logging.default_config: Dict[source]
class client.logging.JobmonLoggerConfig[source]

A class to automatically format and attach handlers to client logging modules.

dict_config[source]
classmethod set_default_config(dict_config: Dict | None = None) None[source]

Set the default logging configuration for this factory.

Parameters:

dict_config – A logging dict config to utilize when adding new loggers. each logger added via add_logger method expects to find a handler called “default”

classmethod attach_default_handler(logger_name: str, log_level: int = logging.INFO) None[source]

A method to setup the default logging config for a specific logger_name.

Parameters:
  • logger_name – The logger to setup

  • log_level – the log severity of the handler.

Returns: None