Skip to content
ConsoleMonster
Class

ConsoleMonsterSinkOptions

ConsoleMonster.Extensions.Serilog

Namespace
ConsoleMonster.Extensions.Serilog
Assembly
ConsoleMonster.Extensions.Serilog
Modifiers
sealed

Controls ConsoleMonster's Serilog line rendering and output destination.

Inheritance

  • object
  • ConsoleMonsterSinkOptions

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public ConsoleMonsterSinkOptions() #

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 SourceContext is shown (default true).

public int MaxExceptionLines { get; set; } #

The maximum exception frames; zero shows only exception 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.

public ITerminalWriter? Writer { get; set; } #

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