def setUp(self) -> None:
    self.errorEvents: List[LogEvent] = []

    @implementer(ILogObserver)
    def observer(event: LogEvent) -> None:
        if ((event['log_namespace'] == jsonLog.namespace) and ('record' in event)):
            self.errorEvents.append(event)
    self.logObserver = observer
    globalLogPublisher.addObserver(observer)
def setUp(self) -> None:
    self.errorEvents: List[LogEvent] = []

    @implementer(ILogObserver)
    def observer(event: LogEvent) -> None:
        if ((event['log_namespace'] == jsonLog.namespace) and ('record' in event)):
            self.errorEvents.append(event)
    self.logObserver = observer
    globalLogPublisher.addObserver(observer)