Class SpessaLog

Namespace
SpessaSharp.Utils
Assembly
SpessaSharp.dll

Manage the log level of SpessaSharp

public static class SpessaLog
Inheritance
SpessaLog
Inherited Members

Fields

InfoEnabled

The most verbose log level, prints out a lot of small details.

public static bool InfoEnabled

Field Value

bool

WarnEnabled

The default log level, prints out warnings for unexpected and erroneous behavior.

public static bool WarnEnabled

Field Value

bool

Methods

CoolInfo<T>(string, T, string?)

[Conditional("DEBUG")]
public static void CoolInfo<T>(string what, T value, string? unit = null)

Parameters

what string
value T
unit string

Type Parameters

T

GMFail(string, ReadOnlySpan<byte>, string?)

[Conditional("DEBUG")]
public static void GMFail(string what, ReadOnlySpan<byte> syx, string? reason = null)

Parameters

what string
syx ReadOnlySpan<byte>
reason string

GMInfo<T>(string, T, string?)

[Conditional("DEBUG")]
public static void GMInfo<T>(string what, T value, string? unit = null)

Parameters

what string
value T
unit string

Type Parameters

T

GSFail(string, ReadOnlySpan<byte>, string?)

[Conditional("DEBUG")]
public static void GSFail(string what, ReadOnlySpan<byte> syx, string? reason = null)

Parameters

what string
syx ReadOnlySpan<byte>
reason string

GSInfo<T>(string, T, string?)

[Conditional("DEBUG")]
public static void GSInfo<T>(string what, T value, string? unit = null)

Parameters

what string
value T
unit string

Type Parameters

T

Info(string)

[Conditional("DEBUG")]
public static void Info(string str)

Parameters

str string

SetLogLevel(bool, bool)

[Conditional("DEBUG")]
public static void SetLogLevel(bool enableInfo, bool enableWarn)

Parameters

enableInfo bool
enableWarn bool

Unsupported(string, ReadOnlySpan<byte>, string?)

[Conditional("DEBUG")]
public static void Unsupported(string what, ReadOnlySpan<byte> syx, string? reason = null)

Parameters

what string
syx ReadOnlySpan<byte>
reason string

Warn(string)

[Conditional("DEBUG")]
public static void Warn(string str)

Parameters

str string

XGFail(string, ReadOnlySpan<byte>, string?)

[Conditional("DEBUG")]
public static void XGFail(string what, ReadOnlySpan<byte> syx, string? reason = null)

Parameters

what string
syx ReadOnlySpan<byte>
reason string

XGInfo<T>(string, T, string?)

[Conditional("DEBUG")]
public static void XGInfo<T>(string what, T value, string? unit = null)

Parameters

what string
value T
unit string

Type Parameters

T