Class LogTask
Used this task for custom log messages.
Inheritance
System.Object
LogTask
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
LogTask(String)#
Declaration
public LogTask(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
LogTask(String, Object[])#
Declaration
public LogTask(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Fields
_tableName#
Declaration
Field Value
Type | Description |
---|
System.String | |
Properties
Args#
Declaration
public object[] Args { get; set; }
Property Value
Type | Description |
---|
System.Object[] | |
ContainerTypeNames#
Declaration
public static string[] ContainerTypeNames { get; set; }
Property Value
Type | Description |
---|
System.String[] | |
Message#
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|
System.String | |
TableName#
Declaration
public string TableName { get; set; }
Property Value
Type | Description |
---|
System.String | |
TaskName#
Declaration
public override string TaskName { get; set; }
Property Value
Type | Description |
---|
System.String | |
Overrides
Methods
ConvertToHierachy(List<LogEntry>)#
Declaration
public static LogHierarchyEntry ConvertToHierachy(List<LogEntry> logEntries)
Parameters
Type | Name | Description |
---|
System.Collections.Generic.List<LogEntry> | logEntries | |
Returns
CreateLogTable()#
Declaration
public void CreateLogTable()
CreateLogTable(IConnectionManager, String)#
Declaration
public static void CreateLogTable(IConnectionManager connectionManager, string logTableName = "etlbox_log")
Parameters
CreateLogTable(String)#
Declaration
public static void CreateLogTable(string logTableName = "etlbox_log")
Parameters
Type | Name | Description |
---|
System.String | logTableName | |
Debug()#
Declaration
Debug(String)#
Declaration
public static void Debug(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Debug(String, Object[])#
Declaration
public static void Debug(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Error()#
Declaration
Error(String)#
Declaration
public static void Error(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Error(String, Object[])#
Declaration
public static void Error(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Fatal()#
Declaration
Fatal(String)#
Declaration
public static void Fatal(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Fatal(String, Object[])#
Declaration
public static void Fatal(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Info()#
Declaration
Info(String)#
Declaration
public static void Info(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Info(String, Object[])#
Declaration
public static void Info(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
ReadLogTable()#
Declaration
public static List<LogEntry> ReadLogTable()
Returns
Type | Description |
---|
System.Collections.Generic.List<LogEntry> | |
ReadLogTable(IConnectionManager)#
Declaration
public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager)
Parameters
Returns
Type | Description |
---|
System.Collections.Generic.List<LogEntry> | |
ReadLogTable(IConnectionManager, Int64)#
Declaration
public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager, long loadProcessId)
Parameters
Returns
Type | Description |
---|
System.Collections.Generic.List<LogEntry> | |
ReadLogTable(Int64)#
Declaration
public static List<LogEntry> ReadLogTable(long loadProcessId)
Parameters
Type | Name | Description |
---|
System.Int64 | loadProcessId | |
Returns
Type | Description |
---|
System.Collections.Generic.List<LogEntry> | |
ReadLogTable(Nullable<Int64>)#
Declaration
public List<LogEntry> ReadLogTable(long? loadProcessId = default(long? ))
Parameters
Type | Name | Description |
---|
System.Nullable<System.Int64> | loadProcessId | |
Returns
Type | Description |
---|
System.Collections.Generic.List<LogEntry> | |
Trace()#
Declaration
Trace(String)#
Declaration
public static void Trace(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Trace(String, Object[])#
Declaration
public static void Trace(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Warn()#
Declaration
Warn(String)#
Declaration
public static void Warn(string message)
Parameters
Type | Name | Description |
---|
System.String | message | |
Warn(String, Object[])#
Declaration
public static void Warn(string message, params object[] args)
Parameters
Type | Name | Description |
---|
System.String | message | |
System.Object[] | args | |
Implements#