twisted.logger.formatEvent(event) function documentationtwisted.logger
View Source
Formats an event as a unicode,
using the format in event["log_format"].
This implementation should never raise an exception; if the formatting cannot be done, the returned string will describe the event generically so that a useful message is emitted regardless.
| Parameters | event | A logging event. (type: dict) |
| Returns | A formatted string. (type: unicode) | |