Skip to content
ConsoleMonster
Class

LogHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe live handle for a LogRegion.

Inheritance

Usage

Explore 1 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

Constructors

public LogHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher.
widgetId string required
The log name.

Methods

public void Error(string text) #

Writes an error.

Parameters

text string required
The text.
public void Warn(string text) #

Writes a warning.

Parameters

text string required
The text.
public void Write(string text, string level = "info", string? tag = null) #

Writes a line.

Parameters

text string required
The text.
level string = "info" optional
The level: info, warn, err, verbose, debug, pass.
tag string? = null optional
The source of the line (a job, server or component), or null.