Writes the log entry.
네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
구문
‘선언
Sub Log ( _
eventName As String, _
computerName As String, _
operatorName As String, _
sourceName As String, _
sourceGuid As String, _
executionGuid As String, _
messageText As String, _
startTime As DateTime, _
endTime As DateTime, _
dataCode As Integer, _
ByRef dataBytes As Byte() _
)
void Log (
string eventName,
string computerName,
string operatorName,
string sourceName,
string sourceGuid,
string executionGuid,
string messageText,
DateTime startTime,
DateTime endTime,
int dataCode,
ref byte[] dataBytes
)
void Log (
String^ eventName,
String^ computerName,
String^ operatorName,
String^ sourceName,
String^ sourceGuid,
String^ executionGuid,
String^ messageText,
DateTime startTime,
DateTime endTime,
int dataCode,
array<unsigned char>^% dataBytes
)
void Log (
String eventName,
String computerName,
String operatorName,
String sourceName,
String sourceGuid,
String executionGuid,
String messageText,
DateTime startTime,
DateTime endTime,
int dataCode,
/** @ref */ byte[] dataBytes
)
JScript는 값 유형 인수를 참조로 전달하는 것을 지원하지 않습니다.
매개 변수
- eventName
The event calling the log entry.
- computerName
The name of local computer.
- operatorName
The user account.
- sourceName
The object that is the source of the event.
- sourceGuid
The GUID of the task.
- executionGuid
The GUID of the specific execution of the package, used to distinguish multiple executions of the same package.
- messageText
The text to write in the log.
- startTime
The start time of the event.
- endTime
The end time of the event.
- dataCode
Numeric data field.
- dataBytes
A byte array field for binary large objects (BLOBs).
주의
The primary method for logging is the Log method. All events logged using this method will be subject to filtering by the LoggingOptions object. However, you achieve certain performance gains by conditioning the calls to Log based on whether logging is enabled, which is done by checking the Enabled status. This enables you to save the time it would take to compose the arguments and the method call overhead.
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
IDTSLogging Interface
IDTSLogging Members
Microsoft.SqlServer.Dts.Runtime Namespace