Jörn Huxhorn wrote:
Using Ralphs example:
logger.logEvent(EventData data)

Wouldn't it be possible to hide all that init and cleanup in the logEvent method?
e.g. something like the following
void logEvent(EventData data) {
   EventDataHolder.set(data);
   info("whatever");
   EventDataHolder.reset();
}

This can be done but it is not pretty. The argument array approach is also a hack, but to a lesser extent.

--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to