Class LogEventArgs
The arguments for a log event.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public class LogEventArgs
Constructors
View SourceLogEventArgs()
Initializes a new instance of the LogEventArgs class.
Declaration
public LogEventArgs()
LogEventArgs(string?, string?, string?)
Initializes a new instance of the LogEventArgs class.
Declaration
public LogEventArgs(string? source = null, string? messageType = null, string? message = null)
Parameters
Type | Name | Description |
---|---|---|
string | source | The source of the event. |
string | messageType | The message type. |
string | message | The message. |
Properties
View SourceMessage
Gets or sets the message.
Declaration
public string? Message { get; set; }
Property Value
Type | Description |
---|---|
string |
MessageType
Gets or sets the message type.
Declaration
public string? MessageType { get; set; }
Property Value
Type | Description |
---|---|
string |
Source
Gets or sets the source of the event.
Declaration
public string? Source { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceToString()
Returns the string representation of the event.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The string representation of the event. |