def __init__(self, id: str): Logger.__init__(self, LogLevel.CHANNEL, 'Channel', id) self.id = id self.listeners = [] self.log('Created')
def __init__(self, id: str, channel: Channel): Logger.__init__(self, LogLevel.TAG, 'Tag', id) self.id = id self.channel = channel self.log('Created')
def __init__(self, id: str): Logger.__init__(self, LogLevel.PROTOCOL, 'Protocol', id) self.id = id self.channel = Channel(id) self.log('Created')
def __init__(self, id: str, channel: Channel): Logger.__init__(self, LogLevel.READER, 'Reader', id) self.id = id self.channel = channel self.log('Created')
def __init__(self, id: str, protocol: Protocol): self.id = f'{id}->{protocol.id}' self.protocol = protocol self.messages = [] Logger.__init__(self, LogLevel.ATTACK, 'Attack', self.id)