Details about a specific log event. More...
Public Member Functions | |
| fm.liveswitch.LogContext | getContext () |
| Gets the event context. More... | |
| java.lang.Exception | getException () |
| Gets the event exception, if one exists. More... | |
| fm.liveswitch.LogLevel | getLevel () |
| Gets the event level. More... | |
| fm.liveswitch.LogLevel | getLogLevel () |
| Gets the level of this log event. More... | |
| String | getMessage () |
| Gets the event message. More... | |
| String | getScope () |
| Gets the event scope. More... | |
| String | getTag () |
| Gets the event tag. More... | |
| long | getThreadId () |
| Gets the ID of the thread generating the event. More... | |
| java.util.Date | getTimestamp () |
| Gets the event timestamp. More... | |
| LogEvent (java.util.Date timestamp, String tag, String scope, fm.liveswitch.LogLevel level, fm.liveswitch.LogContext context, String message, java.lang.Exception exception, long threadId) | |
| Initializes a new instance of the fm.liveswitch.LogEvent class. More... | |
| void | setContext (fm.liveswitch.LogContext value) |
| Sets the event context. More... | |
| void | setException (java.lang.Exception value) |
| Sets the event exception, if one exists. More... | |
| void | setLevel (fm.liveswitch.LogLevel value) |
| Sets the event level. More... | |
| void | setMessage (String value) |
| Sets the event message. More... | |
| void | setScope (String value) |
| Sets the event scope. More... | |
| void | setTag (String value) |
| Sets the event tag. More... | |
| void | setThreadId (long value) |
| Sets the ID of the thread generating the event. More... | |
| void | setTimestamp (java.util.Date value) |
| Sets the event timestamp. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
| String | toString () |
Static Public Member Functions | |
| static fm.liveswitch.LogEvent | fromJson (String logEventJson) |
| Deserializes a log event from JSON. More... | |
| static String | toJson (final fm.liveswitch.LogEvent logEvent) |
| Serializes a log event to JSON. More... | |
Details about a specific log event.
| fm.liveswitch.LogEvent.LogEvent | ( | java.util.Date | timestamp, |
| String | tag, | ||
| String | scope, | ||
| fm.liveswitch.LogLevel | level, | ||
| fm.liveswitch.LogContext | context, | ||
| String | message, | ||
| java.lang.Exception | exception, | ||
| long | threadId | ||
| ) |
Initializes a new instance of the fm.liveswitch.LogEvent class.
| timestamp | The event timestamp. |
| tag | The event tag. |
| scope | The event scope. |
| level | The event level. |
| context | The event context. |
| message | The event message. |
| exception | The event exception, if one exists. |
| threadId | The ID of the thread generating the event. |
|
static |
Deserializes a log event from JSON.
| logEventJson | The log event JSON. |
| fm.liveswitch.LogContext fm.liveswitch.LogEvent.getContext | ( | ) |
Gets the event context.
| java.lang.Exception fm.liveswitch.LogEvent.getException | ( | ) |
Gets the event exception, if one exists.
| fm.liveswitch.LogLevel fm.liveswitch.LogEvent.getLevel | ( | ) |
Gets the event level.
| fm.liveswitch.LogLevel fm.liveswitch.LogEvent.getLogLevel | ( | ) |
Gets the level of this log event.
Alias for fm.liveswitch.LogEvent#getLevel.
| String fm.liveswitch.LogEvent.getMessage | ( | ) |
Gets the event message.
| String fm.liveswitch.LogEvent.getScope | ( | ) |
Gets the event scope.
| String fm.liveswitch.LogEvent.getTag | ( | ) |
Gets the event tag.
| long fm.liveswitch.LogEvent.getThreadId | ( | ) |
Gets the ID of the thread generating the event.
| java.util.Date fm.liveswitch.LogEvent.getTimestamp | ( | ) |
Gets the event timestamp.
| void fm.liveswitch.LogEvent.setContext | ( | fm.liveswitch.LogContext | value | ) |
Sets the event context.
| void fm.liveswitch.LogEvent.setException | ( | java.lang.Exception | value | ) |
Sets the event exception, if one exists.
| void fm.liveswitch.LogEvent.setLevel | ( | fm.liveswitch.LogLevel | value | ) |
Sets the event level.
| void fm.liveswitch.LogEvent.setMessage | ( | String | value | ) |
Sets the event message.
| void fm.liveswitch.LogEvent.setScope | ( | String | value | ) |
Sets the event scope.
| void fm.liveswitch.LogEvent.setTag | ( | String | value | ) |
Sets the event tag.
| void fm.liveswitch.LogEvent.setThreadId | ( | long | value | ) |
Sets the ID of the thread generating the event.
| void fm.liveswitch.LogEvent.setTimestamp | ( | java.util.Date | value | ) |
Sets the event timestamp.
| String fm.liveswitch.LogEvent.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes a log event to JSON.
| logEvent | The log event. |
| String fm.liveswitch.LogEvent.toString | ( | ) |