pymepix.core package

Submodules

pymepix.core.log module

class pymepix.core.log.Logger(name, level=20, prefix='pymepix')[source]

Bases: PymepixLogger

Standard logging implementation using Python’s built-in logging library.

This class extends the PymepixLogger base class to provide standard logging capabilities with customizable formatting and color coding for console output. It retrieves and manages a logger instance from the logging module and allows configuration of log level and format.

getLogger(name)[source]
class pymepix.core.log.ProcessLogger(name, level=20)[source]

Bases: PymepixLogger

Logging implementation for multiprocessing environments.

This class extends the PymepixLogger base class to provide logging capabilities suitable for use in multiprocessing contexts. It retrieves and manages a logger instance compatible with the multiprocessing module’s logging mechanism.

getLogger(name)[source]

Retrieves a logger instance from the multiprocessing module.

Parameters:

name (str) – The name of the logger to be retrieved.

Returns:

The logger instance compatible with multiprocessing logging.

Return type:

logging.Logger

Module contents