cellsystem.logging.core package

Submodules

cellsystem.logging.core.log module

class cellsystem.logging.core.log.Log(*args, **kwargs)[source]

Bases: object

A logger class that registers certain actions.

activate()[source]

Activate the log if deactivated.

log(actionname, *args, **kwargs)[source]

Log the action.

preparefor(actionname, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

silence()[source]

Silence/deactivate log temporarily.

cellsystem.logging.core.multi module

class cellsystem.logging.core.multi.MultiLog[source]

Bases: cellsystem.logging.core.log.Log

An aggregate of logs.

log(actionname, *args, **kwargs)[source]

Log the action.

preparefor(actionname, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

register(log, name)[source]

Register a named log entity.

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.

log(action, *args, **kwargs)[source]

Log the action.

preparefor(action, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

Module contents

Core logging classes

The fundamental interfaces for logging.

class cellsystem.logging.core.Log(*args, **kwargs)[source]

Bases: object

A logger class that registers certain actions.

activate()[source]

Activate the log if deactivated.

log(actionname, *args, **kwargs)[source]

Log the action.

preparefor(actionname, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

silence()[source]

Silence/deactivate log temporarily.

class cellsystem.logging.core.WeakLog(*args, **kwargs)[source]

Bases: cellsystem.logging.core.log.Log

Ignore silently calls to not implemented log methods.

log(action, *args, **kwargs)[source]

Log the action.

preparefor(action, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

class cellsystem.logging.core.MultiLog[source]

Bases: cellsystem.logging.core.log.Log

An aggregate of logs.

log(actionname, *args, **kwargs)[source]

Log the action.

preparefor(actionname, *args, **kwargs)[source]

Save previous state before the entity takes the given action.

register(log, name)[source]

Register a named log entity.