ITaskExecutionContext.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.
Executes the log method for the task.
Overloads
Log(ITask, Exception) |
Records the progress of the task execution. |
Log(ITask, String) |
Indicates the progress of the task execution in the log with the specified string parameter. |
Log(ITask, String, TaskExecutionLogEntryType) |
Indicates the progress of the task exection in the log with the specified string and log entry type. |
Log(ITask, String, Exception, TaskExecutionLogEntryType) |
Indicates the progress of the task exection in the log with the specified string, error message, and log entry type. |
Log(ITask, Exception)
Records the progress of the task execution.
public:
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
Public Sub Log (task As ITask, error As Exception)
Parameters
- task
- ITask
An interface that represents the task.
- error
- Exception
An exception associated with this message.
Applies to
Log(ITask, String)
Indicates the progress of the task execution in the log with the specified string parameter.
public:
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
Public Sub Log (task As ITask, message As String)
Parameters
- task
- ITask
An interface that represents the task.
- message
- String
A string value that represents the text message.
Applies to
Log(ITask, String, TaskExecutionLogEntryType)
Indicates the progress of the task exection in the log with the specified string and log entry type.
public:
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
Public Sub Log (task As ITask, message As String, logEntryType As TaskExecutionLogEntryType)
Parameters
- task
- ITask
An interface that represents the task.
- message
- String
A string value that represents the text message.
- logEntryType
- TaskExecutionLogEntryType
The type of logEntry to be used.
Applies to
Log(ITask, String, Exception, TaskExecutionLogEntryType)
Indicates the progress of the task exection in the log with the specified string, error message, and log entry type.
public:
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
Public Sub Log (task As ITask, message As String, error As Exception, logEntryType As TaskExecutionLogEntryType)
Parameters
- task
- ITask
An interface that represents the task.
- message
- String
A string value that represents the text message.
- error
- Exception
An exception associated with this message.
- logEntryType
- TaskExecutionLogEntryType
The type of logEntry to be used.