logSystems = [] TYPE_INFO = 0 TYPE_WARNING = 1 TYPE_ERROR = 2 def msgLog(message,module,type=None): for system in logSystems: system.writeLog(message,module,type)