On 02/09/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
>
> Hi Thierry,
>
> First of all, a bundle can only specify a single host bundle. So you
> would have to decide which Bundle you want to attach to.
>
> Rather - in the case of Log4J - I suggest you call the Log4J
> configuration mechanism to control the configuration of Log4J.
> Alternatively you might create your own Log4J bundle, where you control
> the first use of Log4J and have the oportunity to configure Log4J
> correctly.


shameless plug... you could also try Pax Logging :)

   http://wiki.ops4j.org/confluence/x/F

for v0.9.5 and later you only need these two bundles:

   http://repository.ops4j.org/maven2/org/ops4j/pax/logging/api
   http://repository.ops4j.org/maven2/org/ops4j/pax/logging/service

and you can configure log4j using config admin

Hope this helps.
>
> Regards
> Felix
>
>
> Am Freitag, den 31.08.2007, 17:11 +0200 schrieb Thierry Templier:
> > 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]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to