TraceLevel

This property specifies the generated trace level to trace ODP.NET calls and diagnose provider issues. Errors will always be traced. Default value is 0 indicating tracing is disabled.

Declaration

// C#
public static int TraceLevel { get; set; }

Property Type

System.Int32

Valid Values:

  • 1 = public APIs

  • 2 = private APIs

  • 4 = network APIs/data

  • 8 = disables writing SQL statements and network packet contents

These values can be bitwise ORed. To enable all traces, set TraceLevel to 7. Use TraceLevel 8 if you require SQL statements and network packet contents to be excluded from the trace.