Replying to a message from: Synametrics Support

Try the following steps:

  • Locate logconfig.xml file in the $INSTALL_DIR. On Windows, this should be something like C:\Xeams\logconfig.xml.
  • Open this file in any editor, such as Notepad
  • This file has two sections:
    Appenders - represented by an appender node.
    Categories - represented by a category node
  • The goal is to add a new appender and a new category using the templates you see below

Code snippet for a new Appender

    <appender name="SPAM_LEARNER" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="logs/SpamLearner.log" />
        <param name="Append" value="true" />
        <param name="MaxFileSize" value="5MB" />    
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %-5p %c{2} - %m%n"/>
        </layout>
    </appender>

Change the name of the file (in red above) if you like.

Code snippet for a new Category

    <category name="SpamLearner" additivity="false">
      <priority value="DEBUG" />
      <appender-ref ref="SPAM_LEARNER"/>           
    </category>

Once done, save the file and restart Xeams. This will create a new file called SpamLearner.log in the $INSTALL_DIR\logs\ folder and will contain entries when Xeams learns from an incoming email.