Compartir a través de


IDTSLogging.Log Method

Writes the log entry.

Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintaxis

'Declaración
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 no permite pasar argumentos de valor para referencia.

Parámetros

  • 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).

Notas

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.

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

IDTSLogging Interface
IDTSLogging Members
Microsoft.SqlServer.Dts.Runtime Namespace