Compartir a través de


RequestOptions.EnableScriptLogging Propiedad

Definición

Obtiene o establece para EnableScriptLogging la solicitud actual en el servicio Azure Cosmos DB.

public bool EnableScriptLogging { get; set; }
member this.EnableScriptLogging : bool with get, set
Public Property EnableScriptLogging As Boolean

Valor de propiedad

Ejemplos

En el ejemplo siguiente se muestra cómo habilitar el registro en procedimientos almacenados mediante EnableScriptLogging.

var response = await client.ExecuteStoredProcedureAsync(
    document.SelfLink,
    new RequestOptions { EnableScriptLogging = true } );
Console.WriteLine(response.ScriptLog);

Para registrar, use lo siguiente en el procedimiento de almacén:

console.log("This is trace log");

Comentarios

EnableScriptLogging se usa para habilitar o deshabilitar el registro en procedimientos almacenados de JavaScript. De forma predeterminada, el registro de scripts está deshabilitado. También se puede acceder al registro en el encabezado de respuesta (x-ms-documentdb-script-log-results).

Se aplica a

Consulte también