Class LogEvent
Represents a log event from the bot brain, which can be saved and reloaded.
Inherited Members
Namespace: Phoenix.BotBrain.Logging
Assembly: Phoenix.Plugin.BotBrain.Logging.dll
Syntax
[DataContract]
public class LogEvent
Properties
View SourceLoggedObject
Gets or sets the logged object.
Declaration
[DataMember(Name = "Object")]
public object? LoggedObject { get; set; }
Property Value
Type | Description |
---|---|
object |
Message
Gets the logged message.
Declaration
[IgnoreDataMember]
public string? Message { get; }
Property Value
Type | Description |
---|---|
string |
MessageType
Gets the message type of the log event.
Declaration
[IgnoreDataMember]
public string? MessageType { get; }
Property Value
Type | Description |
---|---|
string |
Scenario
Gets the scenario of the log event.
Declaration
[IgnoreDataMember]
public string? Scenario { get; }
Property Value
Type | Description |
---|---|
string |
Severity
Gets or sets the logger severity.
Declaration
[DataMember]
public LogLevel Severity { get; set; }
Property Value
Type | Description |
---|---|
LogLevel |
Source
Gets the source of the log event.
Declaration
[IgnoreDataMember]
public string? Source { get; }
Property Value
Type | Description |
---|---|
string |
Timestamp
Gets or sets the time of the log event.
Declaration
[DataMember]
public DateTime Timestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |