jade.events.StructuredLogEvent¶
- class jade.events.StructuredLogEvent(source, category, name, message, **kwargs)[source]¶
Bases:
object
A class for recording structured log events.
Initialize the class
- Parameters:
source (str,) – The source of the event.
category (str,) – An event category given by the user.
name (str,) – An event name given by the user.
message – An event message given the user.
kwargs – Other information that the user needs to record into event.
Methods
Return the base field names for the event.
deserialize
(record)Deserialize event from JSON.
Return all field names for the event.
to_dict
()Convert event object to dict
values
()Return the values for all fields in the event.