parsl.logconfigs.base.LogConfig

class parsl.logconfigs.base.LogConfig[source]

Implementations of this class can initialize Parsl logging.

Parsl logging is built around Python’s logging system, with a Parsl-provided configuration system that allows multiple configurations to be initialized and deinitialized within the same process.

Configurations which might be shared between processes should expect to be pickled/unpickled multiple times as they move around a Parsl distributed system.

__init__()[source]

Methods

__init__()

initialize_logging(*, log_dir, log_name)

Initialize logging in current process.

abstractmethod initialize_logging(*, log_dir: Path, log_name: str) Callable[[], None][source]

Initialize logging in current process.

This should be implemented by users wanting to define their own log configuration policies.

This should be called by Parsl components to initialize logging according to a user supplied policy, rather than a hard-coded log policy.

This should return a callback to uninitialize the logging initialized by this call.