jpos/jPOS-EE — pull request #3 by dgrandemange (2012-07-18 19:40:46+00:00)
Title: Some enhancements, please review

Hi.

Here are some enhancements :
1. As my commons-logging to jPos module was delegating objects as is to the jPos logger, i thought the logback4jposee was doing the same. So i tryed naively soemthing like this:

log.info("{}", isomsg);

But all i got on the output was the String representation of the iso message, not the friendly XML dump we are all used to see.

It's because the message is already formatted when reaching the appender append() method.
The idea here is to let any jPos Loggeable instance passed in the argument array, being handled by the underlying jPos logger. In the same time, other non Loggeable arguments must still participate in the formatting of the message...

This was non trivial task, but at least, it works. Code contains some comments, but please ask if you want more details.

2. I also added support for logback Encoder facility. Therefore, we can now use of MDC among other things ...