Skip to main content

DebugHelper

A class in TavernLib, TavernLib.Debugging.

The /debug_helper service: copies the game's NLog output into MelonLoader's log and draws an on-screen toggle per log level. Nothing for mods to call; its constructor is internal.

Constructors​

1 private and internal constructor
MemberWhat it is
internal DebugHelper()Subscribes OnGui so the log level toggles are drawn.

Fields​

1 private and internal field
MemberWhat it is
private readonly NLogCatcher _logCatcherThe NLogCatcher that feeds game log lines to MelonLoader.

Methods​

1 private and internal method
MemberWhat it is
private void OnGui()Draws a toggle for each log level, which turns that level on or off in the log catcher.