Skip to main content
Avalara Help Center

How do I enable logging in Sage 300?

Overview

You want to turn on logging in Sage 300 so you can see logs of communication between Sage and Avalara.

Environment

Sage 300

Resolution

  • On the Sage server, locate the AvaTax Bin folder in Program Files (x86)
  • Open the adapter.dll.config file in notepad.  It will look like this:

<?xml version="1.0" encoding="utf-8"?>

<configuration>

                <configSections>

                                <section name="ServiceConfig" type="Avalara.AvaTax.Common.Configuration.XmlSerializerSectionHandler, Avalara.AvaTax.Adapter"/>

                                <section name="RequestSecurity" type="Avalara.AvaTax.Common.Configuration.XmlSerializerSectionHandler, Avalara.AvaTax.Adapter"/>

                </configSections>

                <ServiceConfig type="Avalara.AvaTax.Adapter.ServiceConfig, Avalara.AvaTax.Adapter">

                                <Url>https://development.avalara.net/</Url>

                                <ViaUrl/>

                                <RequestTimeout>100</RequestTimeout>

                </ServiceConfig>

                <RequestSecurity type="Avalara.AvaTax.Adapter.RequestSecurity, Avalara.AvaTax.Adapter">

                                <Account></Account>

                                <License></License>

                                <Timeout>300</Timeout>

                </RequestSecurity>

                <!-- AvaLogger : is used for adapter logging

                     logFilePath : is the path where adapter log files will be created relative to the location of the adapter assembly

                     logLevel : determines the level of all three types of adapter logging (NONE (default) | DEBUG | INFO | WARNING | ERROR | FATAL)

                                   logMessages : enables event logging to Adapter.YYYY-MM-DD.log (true | false)

                                   logTransactions : enables logging the results of each web service tranaction to AdapterTransactions.YYYY-MM-DD.log (true | false)

                                   logSoap : enables SOAP message logging to AdapterSoap.YYYY-MM-DD.log (true | false) -->

                <AvaLogger logFilePath=" " logLevel="NONE" logMessages="false" logTransactions="false" logSoap="true"/>

</configuration>

  • You will want to edit the last section (in bold above) as follows:
    • Log file path should be “C:\logs” (not " ")
    • Loglevel should be “DEBUG”  (not "NONE")
    • Logsoap should be “TRUE” (not "true")
  • You have now enabled logging. The logs will be written to the "logs" folder on the C: drive.