Dave Roberts wrote:
I see MINA provides a SessionLogger, and the latest FTP Server code also refers to the (now defunct) IoSessionLogger, as well as a reference to MDC. However I don't see MDC as the magic wand solution here, as it simply provides a per-thread area for static data.
...
Just wondering: where do we go from here?
My plan is to enable MDC by default (using the MDC filter that MINA provides). This will give you the possibility of logging for example to client IP or user name. I've played around some with this and it's real sweet. Have a look at the core unit test as they use MDC for logging, does that cover your needs?
/niklas