>
> try {
> ...
> } catch (ParseException ex){
> log.info "User ${username} entered a invalid date format [${value}] on
> ${page} ...".toString(), ex
> }
Interesting example regarding the username. This is not how I would do it, but I would use a MDC for that, which is explained nicely in this blog:
http://veerasundar.com/blog/2009/11/log4j-mdc-mapped-diagnostic-context-example-code/We use that for our application, since we have around 1500 users, who, together, produce quite a bit of logging. To distinguish between those users, we changed the log pattern to always include the username, but you could use it for much more information
Erik
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email