TaskExecutionContext.Log Method

Definition

Logs the progress of the task execution.

Overloads

Log(ITask, Exception)

Logs the progress of the task execution for the specified task and exception.

Log(ITask, String)

Logs the progress of the task execution.

Log(ITask, String, TaskExecutionLogEntryType)

Logs the progress of the task execution with the specified task, message, and log entry type.

Log(ITask, String, Exception, TaskExecutionLogEntryType)

Logs the progress of the task execution with the specified task, message, exception, and log entry type.

Log(ITask, Exception)

Logs the progress of the task execution for the specified task and exception.

public:
 virtual void Log(Microsoft::SqlServer::Management::ITask ^ task, Exception ^ error);
public void Log (Microsoft.SqlServer.Management.ITask task, Exception error);
abstract member Log : Microsoft.SqlServer.Management.ITask * Exception -> unit
override this.Log : Microsoft.SqlServer.Management.ITask * Exception -> unit
Public Sub Log (task As ITask, error As Exception)

Parameters

task
ITask

A ITask which represents the task to be logged.

error
Exception

The Exception associated with this message.

Implements

Applies to

Log(ITask, String)

Logs the progress of the task execution.

public:
 virtual void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message);
public void Log (Microsoft.SqlServer.Management.ITask task, string message);
abstract member Log : Microsoft.SqlServer.Management.ITask * string -> unit
override this.Log : Microsoft.SqlServer.Management.ITask * string -> unit
Public Sub Log (task As ITask, message As String)

Parameters

task
ITask

A ITask which represents the task to be logged.

message
String

The String containing the message to be logged.

Implements

Applies to

Log(ITask, String, TaskExecutionLogEntryType)

Logs the progress of the task execution with the specified task, message, and log entry type.

public:
 virtual void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message, Microsoft::SqlServer::Management::TaskExecutionLogEntryType logEntryType);
public void Log (Microsoft.SqlServer.Management.ITask task, string message, Microsoft.SqlServer.Management.TaskExecutionLogEntryType logEntryType);
abstract member Log : Microsoft.SqlServer.Management.ITask * string * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
override this.Log : Microsoft.SqlServer.Management.ITask * string * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
Public Sub Log (task As ITask, message As String, logEntryType As TaskExecutionLogEntryType)

Parameters

task
ITask

A ITask which represents the task to be logged.

message
String

The String containing the message to be logged.

logEntryType
TaskExecutionLogEntryType

The TaskExecutionLogEntryType of this message.

Implements

Applies to

Log(ITask, String, Exception, TaskExecutionLogEntryType)

Logs the progress of the task execution with the specified task, message, exception, and log entry type.

public:
 virtual void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message, Exception ^ error, Microsoft::SqlServer::Management::TaskExecutionLogEntryType logEntryType);
public void Log (Microsoft.SqlServer.Management.ITask task, string message, Exception error, Microsoft.SqlServer.Management.TaskExecutionLogEntryType logEntryType);
abstract member Log : Microsoft.SqlServer.Management.ITask * string * Exception * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
override this.Log : Microsoft.SqlServer.Management.ITask * string * Exception * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
Public Sub Log (task As ITask, message As String, error As Exception, logEntryType As TaskExecutionLogEntryType)

Parameters

task
ITask

A ITask which represents the task to be logged.

message
String

The String containing the message to be logged.

error
Exception

The Exception associated with this message.

logEntryType
TaskExecutionLogEntryType

The TaskExecutionLogEntryType of this message.

Implements

Applies to