How to use log4j logging API in eclipse rcp project? As a workaround, I tried to create a new OSGI Bundle package with log4j banks, the structure of the package is presented below.

I crashed a basic RCP application with a view (template) called loggingtest . I included the log4j package in the dependencies tab of the loggingtest project. activator start method I posted the following code
Logger logger = Logger.getLogger(Activator.class); logger.info("Info starting"); logger.warn("Warning starting"); logger.error("Error starting");
so everything is still fine. I can use the log4j API halfway, I was puzzled by where to put the log4j.properties file, how can I continue to get the log file with all the log statements.
more precisely below - the contents of my loggingtest project manifest file
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: LoggingTest Bundle-SymbolicName: LoggingTest; singleton:=true Bundle-Version: 1.0.0.qualifier Bundle-Activator: loggingtest.Activator Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, log4j;bundle-version="1.0.0" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.6
srk
source share