You can turn on debug tracing for a model in IBM Web Experience Factory with the following procedure:
- In /WEB-INF/config/log4j.properties, set log4j.logger.bowstreet.system.debugTracing to DEBUG
- Add a Debug Tracing builder to the model and name it ‘debugTrace’.
- Check ‘Trace all actions’.
- Check ‘Log Parameters’ (if you want to log HTTP request parameters, which enable you to see the values submitted by forms).
- Position the builder high in the model amongst the list of builders.
- Log statements will be written to the WEB-INF/logs/debugTracing.txt of the deployed application; for example: C:\IBM\WebSphere\wp_profile\installedApps\node1\MyApp.ear\MyApp.war\WEB-INF\logs\debugTracing.txt
TIP: On Windows systems, you can use a tool like WinTail to tail the debugTrace.txt file as it rolls.
When your done debugging, don’t forget to set the DEBUG level back to INFO (where we changed it in the first point above) and also disable the debugTracing builder.
