Custom Log4j Logger Not Working After 10.5 Migration? Solution Here!

 View Only
Thu June 24, 2021 05:09 AM

Custom Log4j logging is not working after 10.5 migration from 9.x? You can try below steps.

Since 10.5, webMethods has migrated to Log4j2. To migrate:

  1. Copy /common/lib/ext/log4j/log4j-12api.jar into /instances/default/lib/jars/.

  2. In custom_wrapper.conf, set the following:
    ===============

wrapper.java.additional.xxx=-Dlog4j.configurationFile="<Installation Path>/profiles/IS_default/configuration/logging/log4j2.properties,packages/FrameworkSolutionLogger/config/log4j2.properties"
wrapper.java.additional. xxx.stripquotes=TRUE

===============
where XXX is a unique number.

  1. If there’s a custom log4j.properties in your custom wrapper, run the attached service customLogger.log4j2.util:generateLog4j2ConfigSection, which converts CustomLogger\config\log4j.properties to log4j2.properties.
    Note the following inputs:
    i. log4j2PropertiesFilePath – choose dropdown
    ii. loggerName – refer to log4j.properties for inputs

CustomLogger.zip (10.5 KB)


#log4j
#Integration-Server-and-ESB
#migration
#webMethods