Class LogTask

Used this task for custom log messages.

Inheritance
System.Object
LogTask
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.Logging
Assembly: ETLBox.dll
Syntax
    public sealed class LogTask : ControlFlowTask, ILoggableTask

Constructors

LogTask()

Declaration
    public LogTask()

LogTask(String)

Declaration
    public LogTask(string message)
Parameters
TypeNameDescription
System.Stringmessage

LogTask(String, Object[])

Declaration
    public LogTask(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Fields

_tableName

Declaration
    public string _tableName
Field Value
TypeDescription
System.String

Properties

Args

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

ContainerTypeNames

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

Message

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

TableName

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

TaskName

Declaration
    public override string TaskName { get; set; }
Property Value
TypeDescription
System.String
Overrides

Methods

ConvertToHierachy(List<LogEntry>)

Declaration
    public static LogHierarchyEntry ConvertToHierachy(List<LogEntry> logEntries)
Parameters
TypeNameDescription
System.Collections.Generic.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
System.StringlogTableName

CreateLogTable(String)

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

Debug()

Declaration
    public void Debug()

Debug(String)

Declaration
    public static void Debug(string message)
Parameters
TypeNameDescription
System.Stringmessage

Debug(String, Object[])

Declaration
    public static void Debug(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Error()

Declaration
    public void Error()

Error(String)

Declaration
    public static void Error(string message)
Parameters
TypeNameDescription
System.Stringmessage

Error(String, Object[])

Declaration
    public static void Error(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Fatal()

Declaration
    public void Fatal()

Fatal(String)

Declaration
    public static void Fatal(string message)
Parameters
TypeNameDescription
System.Stringmessage

Fatal(String, Object[])

Declaration
    public static void Fatal(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Info()

Declaration
    public void Info()

Info(String)

Declaration
    public static void Info(string message)
Parameters
TypeNameDescription
System.Stringmessage

Info(String, Object[])

Declaration
    public static void Info(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

ReadLogTable()

Declaration
    public static List<LogEntry> ReadLogTable()
Returns
TypeDescription
System.Collections.Generic.List<LogEntry>

ReadLogTable(IConnectionManager)

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

ReadLogTable(IConnectionManager, Int64)

Declaration
    public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager, long loadProcessId)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager
System.Int64loadProcessId
Returns
TypeDescription
System.Collections.Generic.List<LogEntry>

ReadLogTable(Int64)

Declaration
    public static List<LogEntry> ReadLogTable(long loadProcessId)
Parameters
TypeNameDescription
System.Int64loadProcessId
Returns
TypeDescription
System.Collections.Generic.List<LogEntry>

ReadLogTable(Nullable<Int64>)

Declaration
    public List<LogEntry> ReadLogTable(long? loadProcessId = default(long? ))
Parameters
TypeNameDescription
System.Nullable<System.Int64>loadProcessId
Returns
TypeDescription
System.Collections.Generic.List<LogEntry>

Trace()

Declaration
    public void Trace()

Trace(String)

Declaration
    public static void Trace(string message)
Parameters
TypeNameDescription
System.Stringmessage

Trace(String, Object[])

Declaration
    public static void Trace(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Warn()

Declaration
    public void Warn()

Warn(String)

Declaration
    public static void Warn(string message)
Parameters
TypeNameDescription
System.Stringmessage

Warn(String, Object[])

Declaration
    public static void Warn(string message, params object[] args)
Parameters
TypeNameDescription
System.Stringmessage
System.Object[]args

Implements