Table of Contents

Class CompositeLogSink

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

Log sink that forwards entries to multiple other sinks.

public sealed class CompositeLogSink : ILogSink
Inheritance
CompositeLogSink
Implements
Inherited Members

Properties

Name

Gets the name of this sink for identification purposes.

public string Name { get; }

Property Value

string

Methods

Add(ILogSink)

Adds a sink to the composite.

public CompositeLogSink Add(ILogSink sink)

Parameters

sink ILogSink

Returns

CompositeLogSink

Flush()

Flushes any buffered log entries.

public void Flush()

Remove(ILogSink)

Removes a sink from the composite.

public bool Remove(ILogSink sink)

Parameters

sink ILogSink

Returns

bool

Write(LogEntry)

Writes a log entry to this sink.

public void Write(LogEntry entry)

Parameters

entry LogEntry

The log entry to write.