Jeremy Boynes wrote: > > Which framework to use will depend on the runtime environment. So in > Tomcat for example we should be integrating with the Tomcat logging > system so that any messages logged by the Tuscany implementation will go > into the Tomcat log. > > When I was doing the Tomcat integration I thought it was still using > clogging and log4j and that we would need to provide an implementation > of MonitorFactory that bridged to that environment. However, with 5.5 > they switched to clogging over JSR47 logging which should mean that our > JSR47 MonitorFactory should work. Something worth trying would be to > change TuscanyHost to create the runtime using the JSR47 factory and see > if monitor events get sent to the Tomcat logs. >
Let me take that back. I realized that Tomcat actually logs through clogging it's just that the default implementation behind clogging changed from log4j to JSR47. That means our Tomcat integration should use a MonitorFactory that talks to clogging so that it integrates with the way Tomcat logs. If the user reconfigures Tomcat logging to use log4j or something else other than the default JSR47, then our messages will be handled as well. In other words, we need a MonitorFactory implementation that delegates to clogging. That should be fairly simple to do based on the existing JSR47 one if someone would like to help out. -- Jeremy
