def _observe(self, event):
        flattened = loads(eventAsJSON(event))
        # We get a timestamp from Eliot.
        flattened.pop("log_time")
        # This is never serializable anyway.  "Legacy" log events (from
        # twisted.python.log) don't have this so make it optional.
        flattened.pop("log_logger", None)

        Message.new(**flattened).write(self.logger)
Ejemplo n.º 2
0
    def _observe(self, event):
        flattened = loads(eventAsJSON(event))
        # We get a timestamp from Eliot.
        flattened.pop(u"log_time")
        # This is never serializable anyway.  "Legacy" log events (from
        # twisted.python.log) don't have this so make it optional.
        flattened.pop(u"log_logger", None)

        Message.new(message_type=u"eliot:twisted",
                    **flattened).write(self.logger)
Ejemplo n.º 3
0
 def sendLog(self, eventDictionary):
     """
     
     """
     eventText = eventAsJSON(eventDictionary)
     self.callRemote(LogReceived, message=eventText)
Ejemplo n.º 4
0
 def sendLog(self, eventDictionary):
     eventText = eventAsJSON(eventDictionary)
     self.callRemote(LogReceived, message=eventText)