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
Methods
Add(ILogSink)
Adds a sink to the composite.
public CompositeLogSink Add(ILogSink sink)
Parameters
sinkILogSink
Returns
Flush()
Flushes any buffered log entries.
public void Flush()
Remove(ILogSink)
Removes a sink from the composite.
public bool Remove(ILogSink sink)
Parameters
sinkILogSink
Returns
Write(LogEntry)
Writes a log entry to this sink.
public void Write(LogEntry entry)
Parameters
entryLogEntryThe log entry to write.