academy.logging.configs.jsonpool¶
JSONPoolLogging
¶
Bases: LogConfig
Configures logging to files in home directory based pool of logs.
This feature is aimed at mechanical processing of logs, rather than human readability.
Logs written by this configuration are stored in JSON format under
~/local/share/academy/logs/
Under that directory, logs are first separated into directories by the (distributed) identity of the log configuration: logs configured by the same JSONPoolLogging object, or by a serialized/deserialized copy of the same object, will appear under the same directory.
Within that directory, each instance of log initialization will get a new log file.
This logger is not configurable: it is intended to capture full debug logs from the root, with selection of log records made during the mechanical analysis stage.
Source code in academy/logging/configs/jsonpool.py
init_logging
¶
init_logging() -> Callable[[], None]
Initialize JSON logging into shared pool.