module documentation
Tools for saving and loading log events in a structured format.
Function | failure |
Convert a failure to a JSON-serializable data structure. |
Function | failure |
Load a Failure from a dictionary deserialized from JSON. |
Function | object |
Dictionary-to-object-translation hook for certain value types used within the logging system. |
Function | object |
Object-to-serializable hook for certain value types used within the logging system. |
Type Alias |
|
Undocumented |
Variable | class |
Undocumented |
Variable | log |
Undocumented |
Variable | uuid |
Undocumented |
Convert a failure to a JSON-serializable data structure.
Parameters | |
failure:Failure | A failure to serialize. |
Returns | |
JSONDict | a mapping of strings to ... stuff, mostly reminiscent of Failure.__getstate__ |
Load a Failure
from a dictionary deserialized from JSON.
Parameters | |
failureJSONDict | a JSON-deserialized object like one previously returned by failureAsJSON . |
Returns | |
Failure | Failure |
Object-to-serializable hook for certain value types used within the logging system.
Parameters | |
pythonobject | Any object. |
Returns | |
JSONDict | 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. |
See Also | |
the default parameter to json.dump |