koi_net.components.logging_context

Classes

LoggingContext(root_dir)

Provides access to context vars setting the correct file path for a node's logs in tandem with the log system.

class koi_net.components.logging_context.LoggingContext(root_dir)[source]

Bases: object

Provides access to context vars setting the correct file path for a node’s logs in tandem with the log system.

Mostly used behind the scenes to ensure that logs within other threads and contexts are correctly routed. It is called by the base ThreadedComponent class, and NodeLifecycle.

Parameters:

root_dir (Path)

bound_vars(thread)[source]
Parameters:

thread (str)

root_dir: Path