Class
ConsoleMonsterTarget
ConsoleMonster.Extensions.NLog
An NLog target named ConsoleMonster, usable from code or an NLog.config extension registration.
Inheritance
- Target
- ConsoleMonsterTarget
Constructors
public ConsoleMonsterTarget() #Inherited Methods
public void Dispose() #Inherited from Target
public void Flush(AsyncContinuation asyncContinuation) #Inherited from Target
Parameters
- asyncContinuation AsyncContinuation
public void PrecalculateVolatileLayouts(LogEventInfo logEvent) #Inherited from Target
Parameters
- logEvent LogEventInfo
public void WriteAsyncLogEvent(AsyncLogEventInfo logEvent) #Inherited from Target
Parameters
- logEvent AsyncLogEventInfo
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.