Gert Vanthienen wrote: > > 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. >
hi and thankt, yes, I am building my own BC. At any rate I really need more control than to just use the logger of the component. I want different loggers for different purposes. I just want to create a logger for a specific class from scratch. Further I'm confused about that the "logger" member variable of the component is of a class org.apache.commons.logging.Log, not the log4j class org.apache.log4j.Logger. What's the difference between these? Right now I'm trying out things like LogManager.getLogger(this.getClass()); But I don't quite get it to do what I want. //David -- View this message in context: http://www.nabble.com/log4j%3A-how-to-get-a-Logger-tp18865662p18939579.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
