Description
Command line example which demonstrates initializing and using the EDK Logging API, including all available logging levels. Standalone, requiring no external servers.

Command Line Example
Below are the instructions for running the example:
- Scan the code and note the LOGGING_APPLICATION_NAME parameter declared near the top of the class. Change this value if you wish, and record it. View Code
- Compile with all the edk jar files in the classpath.
- Make sure servlet.jar and all edk jar files are in the classpath.
- Launch ALI Logging Spy. Go to the Filters dialog and right-click to "Add Server". Enter the value set for LOGGING_APPLICATION_NAME in the source code. Click OK to close the "Add Server" dialog. Wait a few seconds until a new entry appears in the list with this name. Click on the empty selection box to accept messages from this server.
- 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.
- 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.
- Run the example again. Note that the messages displayed now include examples of all logging levels, including error and exception logs.