PAX Logging at http://wiki.ops4j.org/display/paxlogging/Pax+Logging is a
good solution, and the one I use. Another good solution is SLF4J at
http://www.slf4j.org/.

Both of those implement the log4j logging API and use standard log4j
configuration property/xml formats for configuration, which is convenient if
that is what you know.

Both of those also implement Commons Logging and other logging APIs making
it very convenient in an OSGi container!
-- 
Best Regards,

Don Laidlaw | Sr. Research Engineer | Infor | office: +1 902-576-5185 |
mobile: +1 902-401-6771 | [email protected]




From: David Conde <[email protected]>
Reply-To: Equinox development mailing list <[email protected]>
Date: Wed, 3 Jun 2009 13:01:18 +0200
To: 'Equinox development mailing list' <[email protected]>
Subject: [equinox-dev] Using Log4J in Equinox framework

Hi,
 
I have been trying to use org.apache.lo4j jar in Equinox but I got an
exception :
 
Java.lang.Error Unresolved compilation problems:
 
The import org.apache cannot be resolved
Š.
 
My framework is not able either to recognize or load this library.
 
I have in my Activator. Java  the next one:
 
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
 
Furthermore, I included org.apache.log4j.jar in my classpath, either I
installed this library like a bundle. I also tried to install the bundle
from Orbit which implemented log4J, but I always have the same result.
 
Does anyone know what I have to do to use org.apache.log4J in Equinox?
 
I have either include import org.apache.log4j in Manifest.MF, I guess that
there is a way to load external libraries in Equinox framework, other times
I tried directly installing the jar file and it was fine, but with
org.apache.lo4j jar there is no way to get a good result.
 
Any idea?
 
I am using Equinox by Console, not through Eclipse.
 
Thank you in advance
 


_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to