<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How can I configure to get DEBUG level log messages of a log category into the Xpert.ivy Server log file.</title><link>https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file</link><description>&lt;p&gt;For debugging I would like to get DEBUG level log messages of a certain log category in the log files of Xpert.ivy Server. &lt;/p&gt;
&lt;p&gt;How can I configure this?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 28 Nov 2014 16:33:49 -0500</lastBuildDate><item><title>Answer by A1234</title><link>https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file/1064</link><description>&lt;p&gt;I would just point out that elements such as &lt;strong&gt;category&lt;/strong&gt; and &lt;strong&gt;priority&lt;/strong&gt; are considered deprecated and must be replaced by &lt;strong&gt;logger&lt;/strong&gt; and &lt;strong&gt;level&lt;/strong&gt; respectively.&lt;/p&gt;
&lt;p&gt;As indicated by &lt;a href="http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html"&gt;org.apache.log4j.Category&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;This class has been deprecated and replaced by the Logger subclass. It will be kept around to preserve backward compatibility until mid 2003.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notice that in the ServerGuide.pdf document, deprecated terminology is used and must be updated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">A1234</dc:creator><pubDate>Fri, 28 Nov 2014 16:33:49 -0500</pubDate><guid>https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file/1064</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file/759</link><description>&lt;p&gt;The log configuration can be changed in the file &lt;code&gt;configuration/log4jconfig.xml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To configure the log level of a certain category add the following xml to the log4jconfig.xml:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;category name="ch.ivyteam.ivy.security" class="ch.ivyteam.log.Logger"&amp;gt;
  &amp;lt;priority value="DEBUG"/&amp;gt;
&amp;lt;/category&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Change &lt;code&gt;ch.ivyteam.ivy.security&lt;/code&gt; with he name of the category you want to configure. &lt;/p&gt;
&lt;p&gt;The log category now logs messages with DEBUG level. But they will not yet be written to the log file because the FileLog appender has normally a threshold set to INFO level. All message with a log level below the threshold are not written to the log file. Therefore you have to change the threshold in the FileLog appender configuration from INFO to DEBUG in the log4jcongig.xml file as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;appender name="FileLog" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt;
  &amp;lt;param name="Threshold" value="DEBUG"/&amp;gt;
  &amp;lt;param name="File" value="${user.dir}/logs/ch.ivyteam.ivy.log"/&amp;gt;
  &amp;lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&amp;gt;
  &amp;lt;layout class="org.apache.log4j.IvyLog4jLayout"&amp;gt;
    &amp;lt;param name="DateFormat" value="HH:mm:ss.SSS"/&amp;gt;
  &amp;lt;/layout&amp;gt;
&amp;lt;/appender&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Fri, 06 Jun 2014 14:04:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/758/how-can-i-configure-to-get-debug-level-log-messages-of-a-log-category-into-the-xpert-ivy-server-log-file/759</guid></item></channel></rss>