Dear Ivy Team

It looks like the Performance Logging can only be run in DEBUG level. Unfortunately in DEBUG level the logging crashes almost the Ivy Engine.

Is there a way to simply log the requests (such as the access_log in the original tomcat) ?

Regards John

asked 31.01.2020 at 12:56

John%20Moser's gravatar image

John Moser
(suspended)
accept rate: 0%


Hey John

Yes, you can enable access_logs from tomcat by enabling the AccesLogValve. There is a sample line in the context.xml which you can un-comment to do so.

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: https://developer.axonivy.com/doc/latest/engine-guide/monitoring/logging.html#runtime-log ) . And set only this appender to level debug - but keep the main logger on level warning or error.

Such a solution could look as follows:

<!-- Defines a log file called performance.log -->
<appender name="PerfLog" class="org.apache.log4j.DailyRollingFileAppender"> 
    <param name="File" value="${user.dir}/logs/performance.log"/> 
    <param name="DatePattern" value="'.'yyyy-MM-dd"/> 
    <layout class="org.apache.log4j.IvyLog4jLayout"> 
        <param name="DateFormat" value="HH:mm:ss"/>
    </layout> 
</appender>

<category name="ch.ivyteam.ivy.webserver.internal.PerformanceLogValve" class="ch.ivyteam.log.Logger">
  <appender-ref ref="PerfLog"/> 
  <priority value="DEBUG"/>
</category>
link

answered 03.02.2020 at 02:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 03.02.2020 at 04:57

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.

(03.02.2020 at 05:30) John Moser John%20Moser's gravatar image

but thumbs up for access_log !

(03.02.2020 at 06:30) John Moser John%20Moser's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×28

Asked: 31.01.2020 at 12:56

Seen: 1,418 times

Last updated: 03.02.2020 at 06:30