O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.10. Adding logging support to the application

The Struts Portlet Framework uses the Commons-Logging interface for a logging facility. The Struts Portlet Framework has supplied an implementation of the Commons-Logging Log interface that can be used to map trace messages to the logging facility used by the portal server. This file is normally found in the wp_root/log directory. Trace logging is enabled by setting properties in the wp_root/shared/app/config/log.properties file.

Note: By default tracing is disabled.

The trace string for tracing a Struts portlet application can be configured in the log.properties file. The trace string can be modified to add or remove classes.

Proceed as follows to enable logging in the portlet included in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required