Encode an event as JSON, flattening it if necessary to preserve as much structure as possible.

Not all structure from the log event will be preserved when it is serialized.

ParameterseventA log event dictionary. (type: dict with arbitrary keys and values)
ReturnsA string of the serialized JSON; note that this will contain no newline characters, and may thus safely be stored in a line-delimited file. (type: unicode)
Function default Serialize an object not otherwise serializable by dumps.
def default(unencodable): (source)

Serialize an object not otherwise serializable by dumps.

ParametersunencodableAn unencodable object.
Returnsunencodable, serialized
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.