Class LoggableTask

This class contains properties that are needed for logging.

Implements
Namespace: ETLBox
Assembly: ETLBox.dll
Syntax
    public abstract class LoggableTask : ILoggableTask

Properties

DisableLogging

If set to true, the component or task won't produce any log output.

Declaration
    public bool? DisableLogging { get; set; }
Property Value
TypeDescription
bool?

LogInstance

The ILogger instance that is used for logging.

Declaration
    public ILogger LogInstance { get; set; }
Property Value
TypeDescription
ILogger

LogThreshold

To avoid getting a log message for every row, by default only a log message is generated for each 1000 rows. Setting this property to a value greater than 0 will change the default value. The overall log threshold can be overwritten in the Settings class.

Declaration
    public int? LogThreshold { get; set; }
Property Value
TypeDescription
int?

ParentTask

Another loggable that which is the creator of this task.

Declaration
    public LoggableTask ParentTask { get; set; }
Property Value
TypeDescription
LoggableTask

TaskHash

Creates a unique hash value to identify the task or component.

Declaration
    public string TaskHash { get; set; }
Property Value
TypeDescription
string

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

Declaration
    public string TaskName { get; set; }
Property Value
TypeDescription
string

TaskType

A type description of the task or component. This is usually the class name.

Declaration
    public string TaskType { get; set; }
Property Value
TypeDescription
string

Methods

LogDebug(string, params object[])

Declaration
    protected void LogDebug(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogError(string, params object[])

Declaration
    protected void LogError(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogFatal(string, params object[])

Declaration
    protected void LogFatal(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogInfo(string, params object[])

Declaration
    protected void LogInfo(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogInfoOrDebug(string, params object[])

Declaration
    protected void LogInfoOrDebug(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogTrace(string, params object[])

Declaration
    protected void LogTrace(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

LogWarn(string, params object[])

Declaration
    protected void LogWarn(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Implements