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.

log(*args, **kwargs)[source]
status_update_func(levelno, levelname)[source]

Example interface for the update function you pass to __init__().

Parameters:

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: