Using Log4j in WAR projects
All WAR projects developed in Application Platform have access to the Apache Commons Logging 1.2 jar, since it is included in the classpath of the Application Platform web-is.jar bundle. You can provide a log4j.properties file with your WAR projects to control logging in the Integration Server log file, located in SoftwareAG_directory/profiles/IS_instance/logs/sag-osgi.log.
You can control logging by providing category loggers, for example:
<logger name="com.softwareag.war.greet.web"additivity="true"><level value="debug"/></logger>
You can add category loggers by:
Adding them to the profile logging configuration, located in
SoftwareAG_directory/profiles/
IS_instance/configuration/logging/log4j.properties.
Providing them directly with the deployed WAR project by including a log4j.properties file in WEB-INF/classes.
For more information about the log4j.properties file, see the Apache Tomcat documentation.