
25 Feb
2009
25 Feb
'09
4:36 p.m.
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