LogTask

Class LogTask

Used this task for custom log messages.

Implements
Namespace: ETLBox.Logging
Assembly: ETLBox.Logging.dll
Syntax
    public sealed class LogTask : ControlFlowTask, ILoggableTask

Constructors

LogTask()

Declaration
    public LogTask()

LogTask(string)

Declaration
    public LogTask(string message)
Parameters
TypeNameDescription
stringmessage

LogTask(string, params object[])

Declaration
    public LogTask(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Fields

_tableName

Declaration
    public string _tableName
Field Value
TypeDescription
string

Properties

Args

Declaration
    public object[] Args { get; set; }
Property Value
TypeDescription
object[]

ContainerTypeNames

Declaration
    public static string[] ContainerTypeNames { get; set; }
Property Value
TypeDescription
string[]

Message

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

TableName

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

Methods

ConvertToHierachy(List<LogEntry>)

Declaration
    public static LogHierarchyEntry ConvertToHierachy(List<LogEntry> logEntries)
Parameters
TypeNameDescription
List<LogEntry>logEntries
Returns
TypeDescription
LogHierarchyEntry

CreateLogTable()

Declaration
    public void CreateLogTable()

CreateLogTable(IConnectionManager, string)

Declaration
    public static void CreateLogTable(IConnectionManager connectionManager, string logTableName = &quot;etlbox_log&quot;)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager
stringlogTableName

CreateLogTable(string)

Declaration
    public static void CreateLogTable(string logTableName = &quot;etlbox_log&quot;)
Parameters
TypeNameDescription
stringlogTableName

Debug()

Declaration
    public void Debug()

Debug(string)

Declaration
    public static void Debug(string message)
Parameters
TypeNameDescription
stringmessage

Debug(string, params object[])

Declaration
    public static void Debug(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Error()

Declaration
    public void Error()

Error(string)

Declaration
    public static void Error(string message)
Parameters
TypeNameDescription
stringmessage

Error(string, params object[])

Declaration
    public static void Error(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Fatal()

Declaration
    public void Fatal()

Fatal(string)

Declaration
    public static void Fatal(string message)
Parameters
TypeNameDescription
stringmessage

Fatal(string, params object[])

Declaration
    public static void Fatal(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Info()

Declaration
    public void Info()

Info(string)

Declaration
    public static void Info(string message)
Parameters
TypeNameDescription
stringmessage

Info(string, params object[])

Declaration
    public static void Info(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

ReadLogTable()

Declaration
    public static List<LogEntry> ReadLogTable()
Returns
TypeDescription
List<LogEntry>

ReadLogTable(IConnectionManager)

Declaration
    public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager
Returns
TypeDescription
List<LogEntry>

ReadLogTable(IConnectionManager, long)

Declaration
    public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager, long loadProcessId)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager
longloadProcessId
Returns
TypeDescription
List<LogEntry>

ReadLogTable(long)

Declaration
    public static List<LogEntry> ReadLogTable(long loadProcessId)
Parameters
TypeNameDescription
longloadProcessId
Returns
TypeDescription
List<LogEntry>

ReadLogTable(long?)

Declaration
    public List<LogEntry> ReadLogTable(long? loadProcessId = null)
Parameters
TypeNameDescription
long?loadProcessId
Returns
TypeDescription
List<LogEntry>

Trace()

Declaration
    public void Trace()

Trace(string)

Declaration
    public static void Trace(string message)
Parameters
TypeNameDescription
stringmessage

Trace(string, params object[])

Declaration
    public static void Trace(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Warn()

Declaration
    public void Warn()

Warn(string)

Declaration
    public static void Warn(string message)
Parameters
TypeNameDescription
stringmessage

Warn(string, params object[])

Declaration
    public static void Warn(string message, params object[] args)
Parameters
TypeNameDescription
stringmessage
object[]args

Implements