Package Products :: Package ZenEvents :: Package events2 :: Module processing :: Class EventLoggerAdapter |
[hide private]
[frames] | no frames]

# Class EventLoggerAdapter

source code

               object --+
                        |
    logging.LoggerAdapter --+
                            |
                           EventLoggerAdapter

A logging adapter that adds the event UUID to the log output.

Instance Methods | [hide private]
process(self, msg, kwargs) Process the logging message and keyword arguments passed in to a logging call to insert contextual information. | source code
Inherited from `logging.LoggerAdapter`: `__init__`, `critical`, `debug`, `error`, `exception`, `info`, `isEnabledFor`, `log`, `warning`

Method Details | [hide private]

### process(self, msg, kwargs) | source code
Process the logging message and keyword arguments passed in to a logging call to insert contextual information. You can either manipulate the message itself, the keyword args or both. Return the message and kwargs modified (or not) to suit your needs. Normally, you'll only need to override this one method in a LoggerAdapter subclass for your specific needs. Overrides: logging.LoggerAdapter.process (inherited documentation)