ecpet.eclogger module

EC-PeT Custom Logging Module

Custom logging levels and setup for EC-PeT that work reliably with multiprocessing across different Python versions.

Provides additional logging levels:
  • NORMAL (25): For normal output usually shown by print statements

  • INSANE (5): For debugging messages in frequently executed loops

@author: clemens

ecpet.eclogger.setup_custom_logging()

Setup custom logging levels that work with multiprocessing.

Additional logging levels are:

  • logging.NORMAL: for normal output usually shown by print but routed to the log instead

  • logging.INSANE: for debugging messages that are produced in loops that are executed really often.

ecpet.eclogger.ensure_logging_setup()

Ensure that the custom logging levels are set up.

Call this in multiprocessing workers for Python 3.13+. Safe to call multiple times.