On Wed, 17 Nov 2004 15:37:10 -0000, Allistair Crossley
<[EMAIL PROTECTED]> wrote:
> Put simply, if you want per-web application logging, you need per-web
> application log4j configuration. It's very easy to do but I do understand
> that those using System.out will have to spend time refactoring. But they can
> stay on their <= 5.0 versions.
This is wrong: swallowOutput will log to the Context category name
using commons-logging.
if (context.getSwallowOutput()) {
try {
SystemLogHandler.startCapture();
filterChain.doFilter(request.getRequest(),
response.getResponse());
} finally {
String log = SystemLogHandler.stopCapture();
if (log != null && log.length() > 0) {
context.getLogger().info(log);
}
}
} else {
filterChain.doFilter
(request.getRequest(), response.getResponse());
}
--
xxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]