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:
-
Copy /common/lib/ext/log4j/log4j-12api.jar into /instances/default/lib/jars/.
-
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.
- 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)