Software AG Infrasructure 10.7 | Working with Web Services | Configuring Logging in Web Services Stack
 
Configuring Logging in Web Services Stack
Web Services Stack uses Journal Logging as a logging mechanism. The Journal Logging is delivered with the shared component bundle com.softwareag.sc.core and its configuration file is located in the Software AG_directory /profiles/CTP/configuration/logging directory in the log4j2.properties file.
The Journal Logger is a wrapper around Log4j 2 and every Journal Logging logger wraps a standard Log4j 2 logger. For this reason, the Journal Logger component delivers Log4j 2 as part of its implementation. The Journal Logger configuration is a standard Log4j 2 configuration that sets up the underlying Log4j 2 library. If necessary, you can use Log4j 2 directly. You should add your Log4j 2 settings to the Journal Logger configuration file. Basically, the format of the log4j2.properties file is the same as the format of the Log4j 2 properties configuration. The Journal Logger contains several additional appenders than the standard Log4j 2 appenders.
To enable logging and configure the corresponding severity, open the log4j2.properties file and edit this excerpt as follows:
rootLogger.level = info
rootLogger.appenderRef.rolling.ref = Platform.RollingLogFile
rootLogger.appenderRef.console.ref = Platform.Console
Configuring Logging When Web Services Stack is Deployed on an Application Server
When Web Services Stack is deployed on an application server, for example a standalone Apache Tomcat server, you configure the Web Services Stack logging according to the server's documentation.