utils.logging

Logging utilities, building on top of the python logging module.

ximpol.utils.logging_.abort(message='')[source]

Abort the execution (via a sys.exit) with a message.

Use this with care, and opt for custom exceptions whenever possible.

ximpol.utils.logging_.startmsg()[source]

Print the start message.

ximpol.utils.logging_.suppress_logging()[source]

Set the logging level to critical.

This can be imported, e.g., in the unit tests are running in background and don’t need logging.

class ximpol.utils.logging_.xFileFormatter(fmt=None, datefmt=None)[source]

Logging file formatter class.

format(record)[source]

Overloaded format method.

class ximpol.utils.logging_.xFileHandler(filePath, mode='a', encoding=None, delay=False)[source]

Logging file handler class.

close()[source]

Close the file.