Class LogMessage
- Namespace
- NetCord.Gateway
- Assembly
- NetCord.dll
public class LogMessage : ISpanFormattable, IFormattable
- Inheritance
-
LogMessage
- Implements
-
- Inherited Members
-
Properties
Description
public string? Description { get; }
Property Value
- string
Exception
public Exception? Exception { get; }
Property Value
- Exception
Message
public string Message { get; }
Property Value
- string
Severity
public LogSeverity Severity { get; }
Property Value
- LogSeverity
Methods
Error(Exception)
public static LogMessage Error(Exception exception)
Parameters
exception
Exception
Returns
- LogMessage
Info(string, string?)
public static LogMessage Info(string message, string? description = null)
Parameters
message
string
description
string
Returns
- LogMessage
ToString()
public override string ToString()
Returns
- string
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
format
string
formatProvider
IFormatProvider
Returns
- string
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
Parameters
destination
Span<char>
charsWritten
int
format
ReadOnlySpan<char>
provider
IFormatProvider
Returns
- bool