Ralph Goers wrote: > I would have no problem with that if LoggerManager had a method that was > called at the beginning of a request. If that was the case I wouldn't > even be using the Cocoon ContextMap as our LoggingFramework has its own > equivalent (for Log4J NDC type stuff). This would actually simplify my > code. What would the method signature look like? > I'm thinking of providing an ExtendedLoggerManager interface that extends the LoggerManager by two methods: Object createPerRequestLoggingContext(Environment env); void cleanupPerRequestLoggingContext(Object o)
The first method is called at the beginning of each request and can return a handle which is used as input to the second method at the end of each request. WDYT? Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/