Class LogEventInfo
Log event information.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LogEventInfo : Info
Properties
Exception
Gets or sets the log event exception message.
Declaration
public string Exception { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Level
Gets or sets the log event level.
Declaration
public string Level { get; }
Property Value
Type | Description |
---|---|
System.String |
Message
Gets or sets the log event message.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Scope
Gets or sets the log event scope.
Declaration
public string Scope { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tag
Gets or sets the log event tag.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ThreadId
Gets or sets the log event thread ID.
Declaration
public long ThreadId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes Json to a LogEventInfo.
Declaration
public static LogEventInfo FromJson(string logEventInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | logEventInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
LogEventInfo | The deserialized LogEventInfo. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(LogEventInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(LogEventInfo logEventInfo)
Parameters
Type | Name | Description |
---|---|---|
LogEventInfo | logEventInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |