emsm.core.logging_¶
-
class
emsm.core.logging_.Logger(app)[source]¶ Bases:
objectSets the root
logging.Loggerup.The EMSM logger queues all log records until the
emsm.logcan be acquired without side effects. This is the case, when theApplicationacquired the file lock. The queued records are then pushed to theemsm.log.The EMSM logging stategy requires, that each module uses its own logger instance:
>>> import logging >>> log = logging.getLogger(__file__)