This sample demonstrates the use of the Common Logging implementation in an Eclipse environment by logging records in a Common Logging Sample plug-in. You can create and configure Eclipse log records (for example, IStatus) and Common Base Event log records. Then you can log the newly created log records through a plug-in's logger configured for writing to the Common.Logging.Logger Logging Agent and the Eclipse Common Logging XML log file (workspace/.metadata/CommonBaseEvents.xml). The Common.Logging.Logger Logging Agent may be monitored by the workbench using the Agent Controller service or daemon.
To add the sample to your workspace:
JRE 1.4.0 or above is required to compile and run this sample.
The following JAR files are required for running the sample:
JAR file name | Plug-in that contains the JAR | Reason for the requirement |
---|---|---|
com.ibm.etools.common.logging.jar | com.ibm.etools.common.logging | Common Logging implementation |
org.eclipse.emf.common.jar | org.eclipse.emf.common | Common Base Event's Eclipse Modeling Framework (EMF) dependency |
org.eclipse.emf.ecore.jar | org.eclipse.emf.ecore | Common Base Event's Eclipse Modeling Framework (EMF) dependency |
hexr.jar | org.eclipse.hyades.execution | TPTP Logging Agent dependency |
hl14.jar | org.eclipse.hyades.logging.core | TPTP support for JSR-047 logging APIs |
hlcbe101.jar | org.eclipse.hyades.logging.core | Common Base Event implementation |
hlcore.jar | org.eclipse.hyades.logging.core | Common Base Event's TPTP Logging Core dependency |
org.eclipse.core.runtime.jar | org.eclipse.core.runtime | Eclipse Logging implementation |
To run this sample, follow these steps:
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.