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 theApplication
acquired 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__)