Click or drag to resize
Diagnostics Class
Provides a set of methods and properties related to logging in the driver.
Inheritance Hierarchy
SystemObject
  CassandraDiagnostics

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax
C#
public static class Diagnostics

The Diagnostics type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddLoggerProvider
Adds a ILoggerProvider to the logger factory used by the driver.

Be sure to call this method before initializing the ICluster to ensure that ILoggerFactory API is used as driver logging mechanism instead of Trace.

Top
Fields
  NameDescription
Public fieldStatic memberCassandraTraceSwitch
Specifies what messages should be passed to the output log when using the Trace API.

Field Value

Type: 
TraceLevel.Off - Output no tracing messages.

Field Value

Type: 
TraceLevel.Error - Output error-handling messages.

Field Value

Type: 
TraceLevel.Warning - Output warnings and error-handling messages.

Field Value

Type: 
TraceLevel.Info - Output informational messages, warnings, and error-handling messages.

Field Value

Type: 
TraceLevel.Verbose - Output all debugging and tracing messages.

Top
Properties
  NameDescription
Public propertyStatic memberCassandraPerformanceCountersEnabled
Defines if performance counters should be enabled.

Default value is

Field Value

Type: 
false.

Public propertyStatic memberCassandraStackTraceIncluded
Defines if exception StackTrace information should be printed by trace logger.

Default value is

Field Value

Type: 
false.

Top
See Also