lenskit.logging.worker#

Old home of the LensKit logging worker logic.

Deprecated since version 2025.3: This module is deprecated. Import from lenskit.logging.multiprocess.

class lenskit.logging.worker.WorkerContext(config)#

Bases: object

Activate (and deactivate) a worker context. This handles setup and teardown of logging, etc.

Only one worker context can be active, regardless of how many threads are active.

Stability:
Internal (see Stability Levels).
Parameters:

config (WorkerLogConfig)

send_progress(update)#

Send a progrss update event.

Parameters:

update (ProgressMessage)

start()#

Start the logging context.

class lenskit.logging.worker.WorkerLogConfig(address, level, authkey=None)#

Bases: object

Configuration for worker logging.

Parameters:
classmethod current(*, from_monitor=True)#

Get the current worker logging configuration.

Parameters:

from_monitor (bool)