Skip to main content

Struct LogMessage

Provides a message object used for logging purposes.

Assembly: Revolt.Net.Commands.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 = null, int? padSource)
Returns​

System.String

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