Skip to main content

NLogCatcher.MelonTarget

A class in TavernLib, TavernLib.Debugging.

An NLog target that writes the game's log lines to TavernLib's MelonLoader log, coloured by level.

Constructors​

MemberWhat it is
MelonTarget()Created by TavernLib; mods don't make one.

Properties​

MemberWhat it is
Dictionary<string, bool> LoggingLevels { get; }Which NLog levels are copied, by level name. All on at first; DebugHelper's toggles change them.

Methods​

MemberWhat it is
protected override void Write(LogEventInfo logEvent)Copies one log line, skipping a few noisy loggers (Connection, MessageDebug, SpawingLogger) and levels that are off.

Used in​

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