Class LogTask
Used this task for custom log messages.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.Logging
Assembly: ETLBox.dll
Syntax
public sealed class LogTask : ControlFlowTask, ILoggableTask
Constructors
LogTask()
Declaration
LogTask(string, params object[])
Declaration
public LogTask(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
LogTask(string)
Declaration
public LogTask(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Fields
_tableName
Declaration
Field Value
Properties
Args
Declaration
public object[] Args { get; set; }
Property Value
ContainerTypeNames
Declaration
public static string[] ContainerTypeNames { get; set; }
Property Value
Message
Declaration
public string Message { get; set; }
Property Value
TableName
Declaration
public string TableName { get; set; }
Property Value
TaskName
Declaration
public override string TaskName { get; set; }
Property Value
Overrides
Methods
ConvertToHierachy(List<LogEntry>)
Declaration
public static LogHierarchyEntry ConvertToHierachy(List<LogEntry> logEntries)
Parameters
Type | Name | Description |
---|
System.Collections.Generic.List<T><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 |
---|
string | logTableName | |
Debug()
Declaration
Debug(string, params object[])
Declaration
public static void Debug(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Debug(string)
Declaration
public static void Debug(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Error()
Declaration
Error(string, params object[])
Declaration
public static void Error(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Error(string)
Declaration
public static void Error(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Fatal()
Declaration
Fatal(string, params object[])
Declaration
public static void Fatal(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Fatal(string)
Declaration
public static void Fatal(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Info()
Declaration
Info(string, params object[])
Declaration
public static void Info(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Info(string)
Declaration
public static void Info(string message)
Parameters
Type | Name | Description |
---|
string | message | |
ReadLogTable()
Declaration
public static List<LogEntry> ReadLogTable()
Returns
Type | Description |
---|
System.Collections.Generic.List<T><LogEntry> | |
ReadLogTable(IConnectionManager, long)
Declaration
public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager, long loadProcessId)
Parameters
Returns
Type | Description |
---|
System.Collections.Generic.List<T><LogEntry> | |
ReadLogTable(IConnectionManager)
Declaration
public static List<LogEntry> ReadLogTable(IConnectionManager connectionManager)
Parameters
Returns
Type | Description |
---|
System.Collections.Generic.List<T><LogEntry> | |
ReadLogTable(long)
Declaration
public static List<LogEntry> ReadLogTable(long loadProcessId)
Parameters
Type | Name | Description |
---|
long | loadProcessId | |
Returns
Type | Description |
---|
System.Collections.Generic.List<T><LogEntry> | |
ReadLogTable(long?)
Declaration
public List<LogEntry> ReadLogTable(long? loadProcessId = null)
Parameters
Type | Name | Description |
---|
long? | loadProcessId | |
Returns
Type | Description |
---|
System.Collections.Generic.List<T><LogEntry> | |
Trace()
Declaration
Trace(string, params object[])
Declaration
public static void Trace(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Trace(string)
Declaration
public static void Trace(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Warn()
Declaration
Warn(string, params object[])
Declaration
public static void Warn(string message, params object[] args)
Parameters
Type | Name | Description |
---|
string | message | |
object[] | args | |
Warn(string)
Declaration
public static void Warn(string message)
Parameters
Type | Name | Description |
---|
string | message | |
Implements