A internal static class in TavernLib, TavernLib. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
TavernLib's internal log helper. Writes through Tavern.Logger as [Type.Method]: message, finding the caller from the stack trace.
Methods
| Member | What it is |
|---|
static void Error(object msg, string callerName = "") | Logs a red line prefixed ERROR, tagged with the calling type and method. |
static void Msg(object msg, string callerName = "") | Logs a green line tagged with the calling type and method. |
static void Warn(object msg, string callerName = "") | Logs an orange line prefixed WARNING, tagged with the calling type and method. |
2 private and internal methods
| Member | What it is |
|---|
private static bool IsCompilerGeneratedAsyncStateMachine(Type type) | True when a type is the compiler's async state machine, so the log can name the type that owns it instead. |
private static void Log(ColorARGB color, string callerName, object msg, string prefix = "") | Writes a coloured MelonLoader log line tagged with the calling type and member name. |