conflog.handlers package

Submodules

conflog.handlers.file_handler module

File handler factory for conflog.

conflog.handlers.file_handler.init(config: Config) FileHandler[source]

Create and configure a logging.FileHandler.

Parameters:

config (Config) – Resolved logging configuration to read handler settings from.

Returns:

Configured file handler ready to be added to a logger.

Return type:

logging.FileHandler

conflog.handlers.stream_handler module

Stream handler factory for conflog.

conflog.handlers.stream_handler.init(config: Config) StreamHandler[source]

Create and configure a logging.StreamHandler.

Parameters:

config (Config) – Resolved logging configuration to read handler settings from.

Returns:

Configured stream handler ready to be added to a logger.

Return type:

logging.StreamHandler

Module contents

Logging handler factories for stream and file output.