REST Logging

REST uses the pdm_rest_util.jar and rest-core.jar packages, which contain log4j logging support. These components do not write any messages to the standard logs (stdlog.*), but through the log4j component. By default, these packages log INFO, ERROR, and WARN messages. Because the Java packages use the same log4j configuration properties file, each logs messages to the same output file. You view the rest.log4j.properties file in the $NX_ROOT\site\cfg\ directory.
casm1401
REST uses the pdm_rest_util.jar and rest-core.jar packages, which contain log4j logging support. These components do
not
write any messages to the standard logs (stdlog.*), but through the log4j component. By default, these packages log INFO, ERROR, and WARN messages. Because the Java packages use the same log4j configuration properties file, each logs messages to the same output file. You view the
rest.log4j.properties
file in the $NX_ROOT\site\cfg\ directory.
To increase the log level to trace or debug, update the following section in the
rest.log4j.properties
file:
log4j.rootCategory=debug, jrestlog
Locate the output file, as defined in the configuration properties file in the following directory:
$NX_ROOT\log\jrest.log
Enable CXF Logging
CA SDM disables CXF logging by default because it can affect performance on a production environment. If your environment requires logging for debugging purposes, the administrator can modify the beans.xml file to enable CXF logging.
Follow these steps:
  1. Locate the beans.xml file in the following directory:
    NX_ROOT\bopcfg\www\CATALINA_BASE_REST\webapps\caisd-rest\WEB-INF
  2. Locate the following section of the XML file:
    <cxf:bus> <cxf:features> </cxf:features> </cxf:bus>
  3. Add <cxf:logging/> to the section, as shown in the following example:
    <cxf:bus> <cxf:features> <cxf:logging/> </cxf:features> </cxf:bus>
  4. Save the XML file.