Diagnostics logging can be enabled manually in the web.config file to allow logging to commence immediately when the XIA Automation Server is started without the need to connect the client tools.


To enable logging manually



  • Open the web.config file by default this is found in
    C:\Program Files\CENTREL Solutions\XIA Automation Server\Server\Web.config

  • Locate the following section in the configuration file

    <system.diagnostics>

     <trace autoflush="true">

      <listeners>

        <clear/>

        <!--

            <add name="TextTracer" type="System.Diagnostics.TextWriterTraceListener, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" initializeData="app_data\logs\trace\xiaautomation.log"/>

        -->

      </listeners>

    </trace>

  </system.diagnostics>


  • Remove the comments so that the section resembles the following

    <system.diagnostics>

     <trace autoflush="true">

      <listeners>

        <clear/>

        <add name="TextTracer" type="System.Diagnostics.TextWriterTraceListener, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" initializeData="app_data\logs\trace\xiaautomation.log"/>

      </listeners>

    </trace>

  </system.diagnostics>


  • Restart the XIA Automation Server

  • By default, the log file will be written to the following location
    C:\Program Files\CENTREL Solutions\XIA Automation Server\Server\App_Data\Logs\Trace\xiaautomation.log