Table of Contents

Class ConsoleLogSink

Namespace
FlowGraph.Core.Diagnostics
Assembly
FlowGraph.Core.dll

Log sink that writes to Console. Useful for console applications and terminal output.

public sealed class ConsoleLogSink : ILogSink
Inheritance
ConsoleLogSink
Implements
Inherited Members

Constructors

ConsoleLogSink(bool)

Creates a new console log sink.

public ConsoleLogSink(bool useColors = true)

Parameters

useColors bool

Whether to use console colors for different log levels.

Properties

Name

Gets the name of this sink for identification purposes.

public string Name { get; }

Property Value

string

Methods

Flush()

Flushes any buffered log entries.

public void Flush()

Write(LogEntry)

Writes a log entry to this sink.

public void Write(LogEntry entry)

Parameters

entry LogEntry

The log entry to write.