twisted.logger.extractField(field, event)
function documentationtwisted.logger
View Source
Extract a given format field from the given event.
Parameters | field | A string describing a format field or log key. This is the text that would
normally fall between a pair of curly braces in a format string: for
example, "key[2].attribute" . If a conversion is
specified (the thing after the "!" character in a
format field) then the result will always be unicode . (type: str
(native string)) |
event | A log event. (type: dict ) | |
Returns | A value extracted from the field. (type: object ) | |
Raises | KeyError | if the field is not found in the given event. |