On 29 Jul 2002, Bob Herrmann wrote: > > > Same should happen for Log, assuming we get the commons-logging > > to support JMX and add a wrapper for JDK1.4 ( for log4j > > we should just use their mbean ). I assume we all agree on > > moving to commons-logging as API, and keeping the old Logging > > interface only for backward compat. > > I just reviewed the tomcat 5.0 proposal, and I didn't notice anything > about logging changing in 5.0 > > Just so I understand this, the current use of <Logger .../> element > "will/should/encouraged to" disappear in 5.0 and instead modules will > directly call the commons-logging interface? So if I want to log a > particular context/webapp or Host or Engine, I will have to figure out > what "domain" it logged to and get the underlying logging system (log4j, > JDK1.4, logkit) to filter out the webapp/Host/Engine I am interested in?
This has been discussed separately, and AFAIK nobody objected to the idea of using commons-logging in 5.0. It was proposed and accepted officially for jk and coyote, and even if no formal vote was made for 5.0 and jasper2 I assume it'll get a majority. The <Logger> element and interfaces will not disapear - it'll remain for backward compat, just like the realm stuff. I assume the attributes will be passed to the commons-logging impl. My understanding is that we'll gradually start using commons-logging inside tomcat/jasper. So all components will use commons-logging, and we'll have a mechanism to configure it per/webapplication ( or host, engine ). Ceki already has some support in log4j to support this, and we can try to do something similar in the jdk1.4 wrapper. The details for configuration are not yet clear - it depends a lot on the overal scheme and I assume on what we do for users, since the problem is very similar. I like Craig's proposal for separate Users - and the Log can work the same. If you have ideas/sugestions about how to manage the loggers - please post them. 5.0 is still at an early stage, but those things should be discussed sooner rather than later. Of course, that's my understanding - I may be wrong. Costin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>