Skip to main content

Struct LogMessage

Provides a message object used for logging purposes.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public struct LogMessage

Properties​

Severity​

Gets the severity of the log entry.

View Source​
Declaration
public readonly LogSeverity Severity { get; }

Source​

Gets the source of the log entry.

View Source​
Declaration
public readonly string Source { get; }

Message​

Gets the message of this log entry.

View Source​
Declaration
public readonly string Message { get; }

Exception​

Gets the exception of this log entry.

View Source​
Declaration
public readonly Exception Exception { get; }

Methods​

ToString()​

View Source​
Declaration
public override string ToString()
Returns​

System.String

ToString(StringBuilder, Boolean, Boolean, DateTimeKind, Nullable<Int32>)​

View Source​
Declaration
public string ToString(StringBuilder builder = null, bool fullException = true, bool prependTimestamp = true, DateTimeKind timestampKind = DateTimeKind.Local, int? padSource = 11)
Returns​

System.String

Parameters​
TypeName
System.Text.StringBuilderbuilder
System.BooleanfullException
System.BooleanprependTimestamp
System.DateTimeKindtimestampKind
System.Nullable<System.Int32>padSource