james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <robertburrelldon...@gmail.com>
Subject [smtp] Introduce Context Sensitive Logging?
Date Sat, 05 Sep 2009 08:40:18 GMT
ATM the logger in smtpserver is service sensitive but not context
sensitive. in other words, avalon is used to ensure that all logs are
directed to an output based not on class but on the fact that the
instance is used within the smtp service. IMAP uses context sensitive
logging. logs are not set on each instances but are passed in for each
important method invocation typically using the session. this allows
messages to be prefixed with information about the handler and session
context for the call. i've found this very useful.

i'd like to replace support for the avalon logger in the handlers by
adding a getter for a JCL[1] log to SMTPSession. a prefixing
JCL->Avalon adaptor would allow contextual information to be added to
messages before they are written to the underlying avalon logging


- robert

[1] http://commons.apache.org/logging/

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message