Skip to main content

NLogCatcher

A internal class in TavernLib, TavernLib.Debugging. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal: adds a MelonTarget to NLog's configuration once the app has started, and again whenever the configuration is replaced. Used by DebugHelper.

Constructors​

MemberWhat it is
NLogCatcher()After late start, adds a target that forwards the game's NLog lines to MelonLoader, and re-adds it if the NLog configuration changes.

Properties​

MemberWhat it is
NLogCatcher.MelonTarget Target { get; private set; }The NLog target that writes to MelonLoader. null until the app's late start.

Used in​

Members of other types that take, return or hold a NLogCatcher: