Logging exMon through the trace log file has been depreciated, now exMon uses another logging environment creating more detailed logs and has restrictions on log sizes.

 

To remove the trace log, the first thing you must do is open the file “ExpectusCommandServiceHost.exe.config”

 

Inside this file is a code similar to this:

<system.diagnostics>
  <sources>
    <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
        propagateActivity="true">
      <listeners>
        <add type="System.Diagnostics.DefaultTraceListener" name="Default">
          <filter type="" />
        </add>
        <add name="ServiceModelTraceListener">
          <filter type="" />
        </add>
      </listeners>
    </source>
  </sources>
  <sharedListeners>
    <add initializeData="C:\Expectus\Logs\expectus_command_service_app_tracelog.svclog"
        type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
      <filter type="" />
    </add>
  </sharedListeners>
</system.diagnostics>

Remove it and save the file. If Windows Prompts you to open the file in Administrator mode, in that case, open Notepad or another text editor in Administrator Mode before making the changes.

image

After that is done, you need to restart the exMon Command Service under Services:

image

 

Now you can safely delete the Trace Log file itself and it will not get recreated in the future.