The nice thing is that you don't have to do anything fancy.
If you just use the log4j api, it will be automatically handled by
pax-logging ...
The only requirement is that your bundle import the org.apache.log4j package.

On Tue, Nov 30, 2010 at 17:16, Olivier.Roger <[email protected]> wrote:
>
> Hello ServiceMix,
>
> I am starting to use SMX version 4 (Fuse ESB distribution) and was wondering
> how I could use the logging service.
>
> I saw in the documentation that:
>
> "Fuse ESB uses the OPS4j Pax Logging system, a standard OSGi logging
> service that also supports the following APIs:
> • Apache Log4j
> • Apache Commons Logging
> • SLF4J
> • Java Util Logging"
>
> In one of my bundle I have a class that use imports org.apache.log4j.Logger.
> Instead of importing Log4j, I would like to use the logging service.
>
> Is there somewhere I could find information about that ?
>
> Thanks in advance
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Loggin-Log4j-API-tp3286413p3286413.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to