How to configure ManagementConsole deployed into Tomcat to log events using date/time (not milliseconds)
Article # 3028932 - Page views: 155
3028932
Question / Problem:
By default the Management Console (MC) application deployed into a standalone Tomcat will log events using milliseconds (i.e. milliseconds since the last Tomcat restart). This could make log analysis complicated but the MC can be configured to log events using date/tme following the steps below:
Answer / Solution:
- In Tomcat, navigate to \webapps\ManagementConsole\WEB-INF\classes
- Open log4j configuration file. Depending on the RPA version this file will be named:
RPA Version FileName 11.0 and Earlier log4j.properties 11.1 and Later log4j2.properties - Change the conversion pattern. The parameter to change depends on the RPA version as below:
RPA Version Change 11.0 and Earlier log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
to
log4j.appender.A.layout.ConversionPattern=%d %-4r [%t] %-5p %c %x - %m%n11.1 and Later appender.A.layout.pattern = %-4r [%t] %-5p %c %equals{%x}{[]}{} - %m%n
to
appender.A.layout.pattern = %d %-4r [%t] %-5p %c %equals{%x}{[]}{} - %m%n
- Save file
- Restart Tomcat
Applies to:
Product | Version |
---|---|
RPA | All |