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. |
Convert a failure to a JSON-serializable data structure.
| Parameters | failure | A failure to serialize. (type: Failure) |
| Returns | a mapping of strings to ... stuff, mostly reminiscent of Failure.__getstate__ (type: JSONDict) | |
Load a Failure from a dictionary deserialized from JSON.
| Parameters | failureDict | a JSON-deserialized object like one previously returned by failureAsJSON. (type: JSONDict) |
| Returns | Failure (type: Failure) | |
Object-to-serializable hook for certain value types used within the logging system.
| Parameters | pythonObject | Any object. (type: object) |
| Returns | If 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 Also | the default parameter to json.dump | |