[logback-dev] RFC: LoggingEvent redesign
Ceki Gulcu
ceki at qos.ch
Wed Feb 25 17:36:27 CET 2009
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
More information about the logback-dev
mailing list