logsystem.py 230 Bytes
from abc import ABCMeta, abstractmethod

class LogSystem(object):
    __metaclass__ = ABCMeta

    TYPE_INFO = 0
    TYPE_WARNING = 1
    TYPE_ERROR = 2

    @abstractmethod
    def writeLog(self,message,module,type):
        pass