Show / Hide Table of Contents

Class LogEvent

Represents a log event from the bot brain, which can be saved and reloaded.

Inheritance
object
LogEvent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Phoenix.BotBrain.Logging
Assembly: Phoenix.Plugin.BotBrain.Logging.dll
Syntax
[DataContract]
public class LogEvent

Properties

View Source

LoggedObject

Gets or sets the logged object.

Declaration
[DataMember(Name = "Object")]
public object? LoggedObject { get; set; }
Property Value
Type Description
object
View Source

Message

Gets the logged message.

Declaration
[IgnoreDataMember]
public string? Message { get; }
Property Value
Type Description
string
View Source

MessageType

Gets the message type of the log event.

Declaration
[IgnoreDataMember]
public string? MessageType { get; }
Property Value
Type Description
string
View Source

Scenario

Gets the scenario of the log event.

Declaration
[IgnoreDataMember]
public string? Scenario { get; }
Property Value
Type Description
string
View Source

Severity

Gets or sets the logger severity.

Declaration
[DataMember]
public LogLevel Severity { get; set; }
Property Value
Type Description
LogLevel
View Source

Source

Gets the source of the log event.

Declaration
[IgnoreDataMember]
public string? Source { get; }
Property Value
Type Description
string
View Source

Timestamp

Gets or sets the time of the log event.

Declaration
[DataMember]
public DateTime Timestamp { get; set; }
Property Value
Type Description
DateTime

Methods

View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
  • View Source
In this article
Back to top Generated by DocFX