Using Oracle WebCenter Interaction Development Kit (IDK) Logging
from the Command Line
These instructions explain how to run the Oracle WebCenter
Interaction Development Kit (IDK) Logging API example code (Java or
.NET) from the command line.
- 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.
- 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.
- Launch 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 .
- Run the example
from the command line. Note any messages displayed in Logging Spy.
Error and exception logs are included in the logging demonstration.
- Go back to the Filters dialog in Logging Spy. Click the gray selection
box beside the 'server' entry to accept logging for all logging levels.
- Run the example
again. Note that the messages displayed now in Logging Spy include
examples of all logging levels, including error and exception logs.