driftwood.adapters package¶
Submodules¶
driftwood.adapters.status module¶
- class driftwood.adapters.status.StatusUpdateAdapter(status_update_func, logger, extra={})[source]¶
Bases: logging.LoggerAdapter
Used to notify a callback about changes in the loglevel of a program.
Parameters: callable (status_update_func) – Called when the status changes. See status_update_func() for the arguments this function should accept.
- status_update_func(levelno, levelname)[source]¶
Example interface for the update function you pass to __init__().
Parameters: - int (levelno) – Logging level numeric value of this call to the LoggerAdapter. See Python Logging Levels
- str (levelname) –
Logging level name of this call to the LoggerAdapter. See Python Logging Levels
Module contents¶
- class driftwood.adapters.StatusUpdateAdapter(status_update_func, logger, extra={})¶
Bases: logging.LoggerAdapter
Used to notify a callback about changes in the loglevel of a program.
Parameters: callable (status_update_func) – Called when the status changes. See status_update_func() for the arguments this function should accept.
- log(*args, **kwargs)¶
- status_update_func(levelno, levelname)¶
Example interface for the update function you pass to __init__().
Parameters: - int (levelno) –
Logging level numeric value of this call to the LoggerAdapter. See Python Logging Levels
- str (levelname) –
Logging level name of this call to the LoggerAdapter. See Python Logging Levels
- int (levelno) –