Hello,

I use some bundles that I haven't developped and use
log4j & commons-logging for tracing. By default, I
have the following message in the console:
log4j:WARN No appenders could be found for logger
(log4jdemo.Activator).
log4j:WARN Please initialize the log4j system
properly.

I want to configure log4j & commons-logging with
custom property files in order to activate the traces
I need. I see that it's possible using Fragment-Host
in the manifest.mf file.

So, I create a bundle containing my log4j.properties
and commons-logging.properties files and the following
manifest.mf file:
Bundle-SymbolicName: LogProperties
Fragment-Host:
org.apache.log4j,org.apache.commons.logging

After the installation and the start of the bundle, I
always have the same warning.

Is it the correct way to activate trace?
Thanks for your help.
Thierry

Take a look at my blog:
http://jroller.com/page/Templth/
(old: http://templth.blogspot.com/)


      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to