AquaLogic User Interaction Development Guide

     Previous Next  Open TOC in new window   View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Using IDK Logging from the Command Line

These instructions explain how to run the IDK Logging API example code (Java or .NET) from the command line.

  1. Scan the sample code and note the LOGGING_APPLICATION_NAME parameter declared near the top of the class. Change this value if you wish, and record it.
  2. Java: Compile with all the idk jar files in the classpath. Make sure servlet.jar and all idk jar files are in the classpath. .NET: Compile the source with reference to idk.dll and its supporting DLLs.
  3. Launch ALI Logging Spy. Go to the Filters dialog box and add a new server (right-click and select Add Server ). Enter the value set for LOGGING_APPLICATION_NAME in the Add Server dialog box and click OK . Wait a few seconds until a new entry appears in the Filter Settings list .
  4. Run the example from the command line. Note any messages displayed in ALI Logging Spy. Error and exception logs are included in the logging demonstration.
  5. Go back to the Filters dialog in ALI Logging Spy. Click the gray selection box beside the 'server' entry to accept logging for all logging levels.
  6. Run the example again. Note that the messages displayed now in ALI Logging Spy include examples of all logging levels, including error and exception logs.

  Back to Top      Previous Next