TaskExecutionContext.Log Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
- 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
- logEntryType
- TaskExecutionLogEntryType
The TaskExecutionLogEntryType of this message.