

def process(self, level, message_template, event_type='undefined', event_context=None):
    self.validate_logging_type(event_type)
    if (not event_context):
        event_context = {
            
        }
    context = self.compile_context(**event_context)
    msg = self.compile_message(message_template, context)
    log = getattr(self.logger, level)
    log(msg, extra={
        'event_type': event_type,
        'event_context': context,
    })

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/loggers.py EventLogger.process/original