<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Performance Logging</title><link>https://answers.axonivy.com/questions/4351/performance-logging</link><description>&lt;p&gt;Dear Ivy Team&lt;/p&gt;
&lt;p&gt;It looks like the Performance Logging can only be run in DEBUG level. Unfortunately in DEBUG level the logging crashes almost the Ivy Engine. &lt;/p&gt;
&lt;p&gt;Is there a way to simply log the requests (such as the access_log in the original tomcat) ?&lt;/p&gt;
&lt;p&gt;Regards
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4351/performance-logging" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 03 Feb 2020 06:30:14 -0500</lastBuildDate><item><title>Comment by John Moser on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4351/performance-logging#4356</link><description>&lt;p&gt;but thumbs up for access_log !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Mon, 03 Feb 2020 06:30:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/4351/performance-logging#4356</guid></item><item><title>Comment by John Moser on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4351/performance-logging#4355</link><description>&lt;p&gt;Thanks ... but the issue with the performance logging : one record is written in 2 rows. Would be easier to process it further if the record would be on one line.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Mon, 03 Feb 2020 05:30:36 -0500</pubDate><guid>https://answers.axonivy.com/questions/4351/performance-logging#4355</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4351/performance-logging/4352</link><description>&lt;p&gt;Hey John&lt;/p&gt;
&lt;p&gt;Yes, you can enable access_logs from tomcat by enabling the &lt;code&gt;AccesLogValve&lt;/code&gt;. There is a sample line in the &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/configuration/files/context-xml.html"&gt;context.xml&lt;/a&gt; which you can un-comment to do so.&lt;/p&gt;
&lt;p&gt;Regarding the Performance Logging. If setting the engine to debug mode almost crashes your isntance, you may try to activate debug level only for the performance logs. Do so by adding a new log appender ( as described here: &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/monitoring/logging.html#runtime-log"&gt;https://developer.axonivy.com/doc/latest/engine-guide/monitoring/logging.html#runtime-log&lt;/a&gt; ) . And set only this appender to level debug - but keep the main logger on level warning or error.&lt;/p&gt;
&lt;p&gt;Such a solution could look as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;!-- Defines a log file called performance.log --&amp;gt;
&amp;lt;appender name="PerfLog" class="org.apache.log4j.DailyRollingFileAppender"&amp;gt; 
    &amp;lt;param name="File" value="${user.dir}/logs/performance.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"/&amp;gt;
    &amp;lt;/layout&amp;gt; 
&amp;lt;/appender&amp;gt;

&amp;lt;category name="ch.ivyteam.ivy.webserver.internal.PerformanceLogValve" class="ch.ivyteam.log.Logger"&amp;gt;
  &amp;lt;appender-ref ref="PerfLog"/&amp;gt; 
  &amp;lt;priority value="DEBUG"/&amp;gt;
&amp;lt;/category&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 03 Feb 2020 02:51:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/4351/performance-logging/4352</guid></item></channel></rss>