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.
- Listed in TavernLib.Debugging
- Nested in
NLogCatcher - Inherits or implements
TargetWithLayout
Constructors
| Member | What it is |
|---|---|
MelonTarget() | Created by TavernLib; mods don't make one. |
Properties
| Member | What 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
| Member | What 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: