module documentation
(source)

Tools for saving and loading log events in a structured format.

Variable log Undocumented
Variable JSONDict Undocumented
Function failureAsJSON Convert a failure to a JSON-serializable data structure.
Function failureFromJSON Load a Failure from a dictionary deserialized from JSON.
Variable classInfo Undocumented
Variable uuidToLoader Undocumented
Function objectLoadHook Dictionary-to-object-translation hook for certain value types used within the logging system.
Function objectSaveHook Object-to-serializable hook for certain value types used within the logging system.

Undocumented

JSONDict = (source)

Undocumented

def failureAsJSON(failure): (source)

Convert a failure to a JSON-serializable data structure.

ParametersfailureA failure to serialize. (type: Failure)
Returnsa mapping of strings to ... stuff, mostly reminiscent of Failure.__getstate__ (type: JSONDict)
def failureFromJSON(failureDict): (source)

Load a Failure from a dictionary deserialized from JSON.

ParametersfailureDicta JSON-deserialized object like one previously returned by failureAsJSON. (type: JSONDict)
ReturnsFailure (type: Failure)
classInfo = (source)

Undocumented

uuidToLoader = (source)

Undocumented

def objectLoadHook(aDict): (source)

Dictionary-to-object-translation hook for certain value types used within the logging system.

ParametersaDictA dictionary loaded from a JSON object. (type: JSONDict)
ReturnsaDict itself, or the object represented by aDict (type: object)
See Alsothe object_hook parameter to json.load
def objectSaveHook(pythonObject): (source)

Object-to-serializable hook for certain value types used within the logging system.

ParameterspythonObjectAny object. (type: object)
ReturnsIf the object is one of the special types the logging system supports, a specially-formatted dictionary; otherwise, a marker dictionary indicating that it could not be serialized. (type: JSONDict)
See Alsothe default parameter to json.dump
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.