David,

If you are building your own components, you can extends DefaultComponent which has a logger preconfigured. Most people aren't building their own JBI component though, they are using our components and e.g. adding POJOs to the servicemix-bean component. For those too, we have convenience base classes (like org.apache.servicemix.bean.support.BeanSupport) which have the logger preconfigured.

Regards,

Gert

David of Sweden wrote:
Hi,

The log4j.xml lets one configure a number of loggers, but can someone tell
me the preferred way of how to actually retrieve a Logger object, configured
by that file, in my own servicemix components to use for logging? Is there
any shared LoggerFactory etc. that one should use?

thanks //David

Reply via email to