koi_net.components.logging_context
Classes
|
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:
objectProvides 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
ThreadedComponentclass, andNodeLifecycle.- Parameters:
root_dir (Path)
- root_dir: Path