fm.liveswitch.LogEventInfo Class Reference

Log event information. More...

Public Member Functions

String getException ()
 Gets the log event exception message. More...
 
String getLevel ()
 Gets the log event level. More...
 
String getMessage ()
 Gets the log event message. More...
 
String getScope ()
 Gets the log event scope. More...
 
String getTag ()
 Gets the log event tag. More...
 
long getThreadId ()
 Gets the log event thread ID. More...
 
 LogEventInfo ()
 
void setException (String value)
 Sets the log event exception message. More...
 
void setMessage (String value)
 Sets the log event message. More...
 
void setScope (String value)
 Sets the log event scope. More...
 
void setTag (String value)
 Sets the log event tag. More...
 
void setThreadId (long value)
 Sets the log event thread ID. More...
 
String toJson ()
 Serializes this instance to Json. More...
 
- Public Member Functions inherited from fm.liveswitch.Info
String getId ()
 Gets the identifier. More...
 
void setId (String value)
 Sets the identifier. More...
 

Static Public Member Functions

static fm.liveswitch.LogEventInfo fromJson (String logEventInfoJson)
 Deserializes Json to a LogEventInfo. More...
 
static String toJson (fm.liveswitch.LogEventInfo logEventInfo)
 Serializes an instance to Json. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Info
static< T extends fm.liveswitch.IEquivalent< T > T[] processArray (T[] newValues, T[] oldValues)
 Processes an array for an info. More...
 
static fm.liveswitch.NullableBoolean processBoolean (boolean newValue, boolean oldValue)
 Processes a boolean for an info. More...
 
static boolean[] processBooleanArray (boolean[] newValues, boolean[] oldValues)
 Processes a boolean array for an info. More...
 
static fm.liveswitch.NullableDouble processDouble (double newValue, double oldValue)
 Processes a double for an info. More...
 
static fm.liveswitch.NullableFloat processFloat (float newValue, float oldValue)
 Processes a float for an info. More...
 
static float[] processFloatArray (float[] newValues, float[] oldValues)
 Processes a float array for an info. More...
 
static double[] processFloatArray (double[] newValues, double[] oldValues)
 Processes a double array for an info. More...
 
static fm.liveswitch.NullableInteger processInteger (int newValue, int oldValue)
 Processes an integer for an info. More...
 
static int[] processIntegerArray (int[] newValues, int[] oldValues)
 Processes a integer array for an info. More...
 
static fm.liveswitch.NullableLong processLong (long newValue, long oldValue)
 Processes a long for an info. More...
 
static long[] processLongArray (long[] newValues, long[] oldValues)
 Processes a long array for an info. More...
 
static< T extends Object &fm.liveswitch.IEquivalent< T > T processObject (T newValue, T oldValue)
 Processes an object for an info. More...
 
static fm.liveswitch.NullableShort processShort (short newValue, short oldValue)
 Processes a short for an info. More...
 
static short[] processShortArray (short[] newValues, short[] oldValues)
 Processes a short array for an info. More...
 
static String processString (String newValue, String oldValue)
 Processes a string for an info. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 
- Protected Member Functions inherited from fm.liveswitch.Info
 Info ()
 

Detailed Description

Log event information.

Constructor & Destructor Documentation

◆ LogEventInfo()

fm.liveswitch.LogEventInfo.LogEventInfo ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.LogEventInfo.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.Info.

◆ fromJson()

static fm.liveswitch.LogEventInfo fm.liveswitch.LogEventInfo.fromJson ( String  logEventInfoJson)
static

Deserializes Json to a LogEventInfo.

Parameters
logEventInfoJsonThe serialized Json.
Returns
The deserialized LogEventInfo.

◆ getException()

String fm.liveswitch.LogEventInfo.getException ( )

Gets the log event exception message.

◆ getLevel()

String fm.liveswitch.LogEventInfo.getLevel ( )

Gets the log event level.

◆ getMessage()

String fm.liveswitch.LogEventInfo.getMessage ( )

Gets the log event message.

◆ getScope()

String fm.liveswitch.LogEventInfo.getScope ( )

Gets the log event scope.

◆ getTag()

String fm.liveswitch.LogEventInfo.getTag ( )

Gets the log event tag.

◆ getThreadId()

long fm.liveswitch.LogEventInfo.getThreadId ( )

Gets the log event thread ID.

◆ serializeProperties()

void fm.liveswitch.LogEventInfo.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Info.

◆ setException()

void fm.liveswitch.LogEventInfo.setException ( String  value)

Sets the log event exception message.

◆ setMessage()

void fm.liveswitch.LogEventInfo.setMessage ( String  value)

Sets the log event message.

◆ setScope()

void fm.liveswitch.LogEventInfo.setScope ( String  value)

Sets the log event scope.

◆ setTag()

void fm.liveswitch.LogEventInfo.setTag ( String  value)

Sets the log event tag.

◆ setThreadId()

void fm.liveswitch.LogEventInfo.setThreadId ( long  value)

Sets the log event thread ID.

◆ toJson() [1/2]

String fm.liveswitch.LogEventInfo.toJson ( )

Serializes this instance to Json.

◆ toJson() [2/2]

static String fm.liveswitch.LogEventInfo.toJson ( fm.liveswitch.LogEventInfo  logEventInfo)
static

Serializes an instance to Json.

Parameters
logEventInfoThe instance to serialize.
Returns
Serialized Json.