cellsystem.logging.core package¶
Submodules¶
cellsystem.logging.core.log module¶
cellsystem.logging.core.multi module¶
-
class
cellsystem.logging.core.multi.
MultiLog
[source]¶ Bases:
cellsystem.logging.core.log.Log
A logger class that aggregates together other logs.
Each log call is broadcasted to the child logs.
Example
``` >>> ml = MultiLog()
# Add a new log >>> ml.add(PrinterLog(), ‘printer’)
# Access a log >>> printer = ml[‘printer’] >>> printer.silence()
cellsystem.logging.core.weak module¶
-
class
cellsystem.logging.core.weak.
WeakLog
(*args, **kwargs)[source]¶ Bases:
cellsystem.logging.core.log.Log
Ignore silently calls to not implemented log methods.
Module contents¶
Core logging classes¶
The fundamental interfaces for logging.
-
class
cellsystem.logging.core.
Log
(*args, **kwargs)[source]¶ Bases:
object
The base for logger classes that trigger when certain actions are performed.
-
class
cellsystem.logging.core.
WeakLog
(*args, **kwargs)[source]¶ Bases:
cellsystem.logging.core.log.Log
Ignore silently calls to not implemented log methods.
-
class
cellsystem.logging.core.
MultiLog
[source]¶ Bases:
cellsystem.logging.core.log.Log
A logger class that aggregates together other logs.
Each log call is broadcasted to the child logs.
Example
``` >>> ml = MultiLog()
# Add a new log >>> ml.add(PrinterLog(), ‘printer’)
# Access a log >>> printer = ml[‘printer’] >>> printer.silence()