AcquistaBuy
1-855-856-7678
SupportoSupport
| Nome membro | Descrizione |
|---|---|
| DiagnosticInfrastructureLogs | Indicates the data buffer for logs generated by the underlying diagnostics infrastructure itself. |
| Directories | Inidicates the data buffer for file-based logs. |
| Logs | Indicates the data buffer for Windows Azure logs. |
| PerformanceCounters | Indicates the data buffer for performance counters. |
| WindowsEventLogs | Indicates the data buffer for Windows event logs. |
The DataBufferName enumeration is used to specify a data buffer when starting or stopping an on-demand transfer of logging data. Specifically, this enumeration is used for the BeginOnDemandTransfer(DataBufferName) and CancelOnDemandTransfers methods. For example, the following code snippet starts a transfer of performance counter logs for the specified role instance:
// Create a DeploymentDiagnosticManager for the deployment.
DeploymentDiagnosticManager deploymentDiagnosticManager = new DeploymentDiagnosticManager("MyConnectionString", deploymentId);
// Get the diagnostic manager for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = deploymentDiagnosticManager.GetRoleInstanceDiagnosticManager(roleName, roleInstanceId);
// Begin the on-demand transfer of performance counter logs.
roleInstanceDiagnosticManager.BeginOnDemandTransfer(DataBufferName.PerformanceCounters);