Skip to content
ConsoleMonster
Class

ConsoleMonsterTarget

ConsoleMonster.Extensions.NLog

Namespace
ConsoleMonster.Extensions.NLog
Assembly
ConsoleMonster.Extensions.NLog
Base
Target
Implements
ISupportsInitialize IInternalLoggerContext IDisposable
Modifiers
sealed
Attributes
Target("ConsoleMonster")

An NLog target named ConsoleMonster, usable from code or an NLog.config extension registration.

Inheritance

  • Target
  • ConsoleMonsterTarget

Constructors

public ConsoleMonsterTarget() #

Properties

public string? TimestampFormat { get; set; } #

The invariant timestamp format, or null to omit timestamps (default HH:mm:ss).

public bool UseUtcTimestamp { get; set; } #

Whether event timestamps are converted to UTC.

public bool IncludeCategory { get; set; } #

Whether the last part of the logger name is shown (default true).

public int MaxExceptionLines { get; set; } #

The maximum exception frames; zero shows only types and messages (default 12).

public string? LogRegion { get; set; } #

The live log region key (default $log), or null to always print above the view.

public TerminalProfile? Profile { get; set; } #

The terminal profile, or null for automatic detection. Set this from code.

public ITerminalWriter? Writer { get; set; } #

An explicit output writer, or null for the terminal. The caller retains ownership.