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
WarnEnabled
The default log level, prints out warnings for unexpected and erroneous behavior.
public static bool WarnEnabled
Field Value
Methods
CoolInfo<T>(string, T, string?)
[Conditional("DEBUG")]
public static void CoolInfo<T>(string what, T value, string? unit = null)
Parameters
Type Parameters
T
GMFail(string, ReadOnlySpan<byte>, string?)
[Conditional("DEBUG")]
public static void GMFail(string what, ReadOnlySpan<byte> syx, string? reason = null)
Parameters
whatstringsyxReadOnlySpan<byte>reasonstring
GMInfo<T>(string, T, string?)
[Conditional("DEBUG")]
public static void GMInfo<T>(string what, T value, string? unit = null)
Parameters
Type Parameters
T
GSFail(string, ReadOnlySpan<byte>, string?)
[Conditional("DEBUG")]
public static void GSFail(string what, ReadOnlySpan<byte> syx, string? reason = null)
Parameters
whatstringsyxReadOnlySpan<byte>reasonstring
GSInfo<T>(string, T, string?)
[Conditional("DEBUG")]
public static void GSInfo<T>(string what, T value, string? unit = null)
Parameters
Type Parameters
T
Info(string)
[Conditional("DEBUG")]
public static void Info(string str)
Parameters
strstring
SetLogLevel(bool, bool)
[Conditional("DEBUG")]
public static void SetLogLevel(bool enableInfo, bool enableWarn)
Parameters
Unsupported(string, ReadOnlySpan<byte>, string?)
[Conditional("DEBUG")]
public static void Unsupported(string what, ReadOnlySpan<byte> syx, string? reason = null)
Parameters
whatstringsyxReadOnlySpan<byte>reasonstring
Warn(string)
[Conditional("DEBUG")]
public static void Warn(string str)
Parameters
strstring
XGFail(string, ReadOnlySpan<byte>, string?)
[Conditional("DEBUG")]
public static void XGFail(string what, ReadOnlySpan<byte> syx, string? reason = null)
Parameters
whatstringsyxReadOnlySpan<byte>reasonstring
XGInfo<T>(string, T, string?)
[Conditional("DEBUG")]
public static void XGInfo<T>(string what, T value, string? unit = null)
Parameters
Type Parameters
T