Plumtree Enterprise Development Kit |

# Logging API Examples

Description
Command line example which demonstrates initializing and using the EDK Logging API, including all available logging levels. Requires no external servers, but needs a Plumtree log receiver such as Plumtree Logging Spy in order to view log messages.

Command Line Example

- Scan the source 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 C# Code
  View VB Code
- Compile the source with reference to edk.dll and its supporting DLLs.
- Launch Plumtree 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 Plumtree Logging Spy. Don't be alarmed by exception or error log messages, since they are part of the logging demonstration.
- Go back to the Filters dialog in Plumtree 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. Again, exception or error log messages are part of the logging demonstration.

Please check AquaLogic User Interaction Developer Center for additional samples relevant to the EDK.