emsm.core.logging_

class emsm.core.logging_.Logger(app)[source]

Bases: object

Sets the root logging.Logger up.

The EMSM logger queues all log records until the emsm.log can be acquired without side effects. This is the case, when the Application acquired the file lock. The queued records are then pushed to the emsm.log.

The EMSM logging stategy requires, that each module uses its own logger instance:

>>> import logging
>>> log = logging.getLogger(__file__)
setup()[source]

Opens the emsm.log and pushes all queued log recods to the log file.

Hint

This method requires that the Application aquired the file lock.