Send feedback on this topic.
Teradata.Client.Provider
Example Configuration File
.NET Data Provider for Teradata > Developer's Guide > Product Support, Troubleshooting and Error Messages > Troubleshooting > Example Configuration File

The following configuration file logs TdConnection and TdDataReader components at the TRACE level and also logs the first 1024 bytes of each message sent to or from Teradata.

 

<?xml version="1.0" encoding="utf-8"?>
<LogSettings>
      <!-- Logging Level:
          1 - Logs Error Messages
          2 - Logs Warning and Error Messages
          3 - Logs Informational, Warning and Error Messages
          4 - Logs Trace [External], Informational, Warning and Error Messages
          5 - Logs Trace [Internal and External], Informational, Warning and Error messages
          6 - Logs Debug, Trace, Informational, Warning and Error Messages
              MessageData ignores 'Level'. It dumps the first 'MaxDataSize' bytes of each message.
      -->

      <Level>5</Level>
      <MaxDataSize>1024</MaxDataSize>
      <MessageData>true</MessageData>
      <Command>false</Command>
      <Connection>true</Connection>
      <DataAdapter>false</DataAdapter>
      <DataReader>true</DataReader>
      <TdError>false</TdError>
      <Exception>false</Exception>
      <Lobs>false</Lobs>
      <Parameter>false</Parameter>
      <Transaction>false</Transaction>
      <TdTypes>false</TdTypes>
      <Session>false</Session>
      <SocketsDNS>false</SocketsDNS>
      <SchemaCollections>false</SchemaCollections>
      <EntityProvider>false</EntityProvider>
</LogSettings>