You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Olivier.Roger" <ol...@bsb.com> on 2010/11/30 18:16:25 UTC

[Loggin] Log4j API

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.

Re: [Loggin] Log4j API

Posted by "Olivier.Roger" <ol...@bsb.com>.
Perfect! That's exactly what I needed to know. Thanks
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/Loggin-Log4j-API-tp3286413p3287380.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: [Loggin] Log4j API

Posted by jackiemiller <ja...@gmail.com>.
Hi,

Indeed, you have a great response. I read this thread I found it more useful
information on logging service. Thanks for a direct answer.

-----
My  http://www.dream-trip-club.com/ Dream Trip  

-- 
View this message in context: http://servicemix.396122.n5.nabble.com/Loggin-Log4j-API-tp3286413p3289042.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: [Loggin] Log4j API

Posted by Guillaume Nodet <gn...@gmail.com>.
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 <ol...@bsb.com> 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