Class Logging
Contains static information which affects all ETLBox tasks and general logging behavior for all components. Here you can set default connections string, disable the logging for all processes or set the current stage used in your logging configuration.
Inheritance
Inherited Members
Namespace: ETLBox.Logging
Assembly: ETLBox.dll
Syntax
public static class Logging
Fields
DEFAULTLOADPROCESSTABLENAME
Declaration
public const string DEFAULTLOADPROCESSTABLENAME = "etlbox_loadprocess"
Field Value
Type | Description |
---|---|
string |
DEFAULTLOGTABLENAME
The default log table name
Declaration
public const string DEFAULTLOGTABLENAME = "etlbox_log"
Field Value
Type | Description |
---|---|
string |
Properties
CurrentLoadProcess
If you used the logging task StartLoadProces (and created the corresponding load process table before) then this Property will hold the current load process information.
Declaration
[Obsolete]
public static LoadProcess CurrentLoadProcess { get; }
Property Value
Type | Description |
---|---|
LoadProcess |
DisableAllLogging
This is the default value for all control and dataflow components. If set to true, no log messages will be produced. Logging can be enabled/disabled for all components individually using the DisableLogging property on each component.
Declaration
public static bool DisableAllLogging { get; set; }
Property Value
Type | Description |
---|---|
bool |
LoadProcessTable
TableName of the current load process logging table
Declaration
[Obsolete]
public static string LoadProcessTable { get; set; }
Property Value
Type | Description |
---|---|
string |
LogInstance
Declaration
public static ILogger LogInstance { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.ILogger |
LogTable
TableName of the current log process logging table
Declaration
[Obsolete]
public static string LogTable { get; set; }
Property Value
Type | Description |
---|---|
string |
STAGE
For logging purposes only. If the stage is set, you can access the stage value in the logging configuration.
Declaration
[Obsolete]
public static string STAGE { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ClearSettings()
Set all settings back to default (which is null or false)
Declaration
public static void ClearSettings()