Class LogDestination

A destination that writes each incoming record into a log output using a Microsoft ILogger. Every record is serialized (by default using the same json serialization that is used for the error output) and logged with the defined LogLevel and MessageTemplate. If the input type is ETLBoxError, a specialized default message template and the log level Error are used - this allows to link the error output of any component directly into a LogDestination.

Inherited Members
Namespace: ETLBox.DataFlow
Assembly: ETLBox.dll
Syntax
    public class LogDestination : LogDestination<ExpandoObject>, IDataFlowDestination<ExpandoObject>, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Examples
var dest = new LogDestination<MyRow>() { Logger = myLogger };
source.LinkTo(dest);
//Logging the error output of a component:
var errorDest = new LogDestination<ETLBoxError>() { Logger = myLogger };
source.LinkErrorTo(errorDest);

Constructors

LogDestination()

Declaration
    public LogDestination()

LogDestination(ILogger)

Declaration
    public LogDestination(ILogger logger)
Parameters
TypeNameDescription
ILoggerlogger

Sets the Logger

Implements