The DataSplice Server uses the Apache foundation's log4net library.  Consequently you can modify the settings in the dssplicer.exe.config file in accordance with these examples found here.


To setup the DataSplice Server to only write one log file per day and keep the last 180 days worth, make the following changes:

  • Locate the "RollingFileAppender" section in the dssplicer.exe.config file.  By default it should look like this:
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="logs/DSSplicer.Log.txt"/>
      <appendToFile value="true"/>
      <countDirection value="1"/>
      <rollingStyle value="Size" />
      <maxSizeRollBackups value="100" />
      <maximumFileSize value="100KB" />
      <staticLogFileName value="true" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%d [%t] %-5p %c - %m%n" />
      </layout>
    </appender>
  • Modify the section to look like this, the key parts are in bold:
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file value="logs/DSSplicer.Log.txt"/>
      <appendToFile value="true"/>
      <rollingStyle value="Date" />
      <datePattern value="yyyyMMdd" />
      <maxSizeRollBackups value="180" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%d [%t] %-5p %c - %m%n" />
      </layout>
    </appender>
  • Restart the DataSplice Server for this to take effect.


For additional assistance please email support@datasplice.com and we'd be happy to help!