Skip to main content
Kofax

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: 

 
  1. In Tomcat, navigate to \webapps\ManagementConsole\WEB-INF\classes
  2. 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

     

  3. 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%n
    11.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

     
  4. Save file
  5. Restart Tomcat

Applies to:  

Product Version
RPA All

 

 

  • Was this article helpful?