libmuscle.logging_handler module

class libmuscle.logging_handler.MuscleManagerHandler(instance_id: str, level: int, mmp_client: MMPClient)[source]

Bases: Handler

Standard Python log handler for the manager.

A MuscleManagerHandler is a standard Python log handler, which can be attached to a logger, and forwards log messages to the Muscle Manager for central logging.

emit(record: LogRecord) None[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.