logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject [log4j2] A little bit fluent
Date Fri, 04 May 2012 08:48:08 GMT
Today it is like:

if(logger.isDebugEnabled) {
  logger.debug("Hello");
  logger.debug("Another");
  logger.debug("Third");
}

all the logging methods return void, like:
void debug(String message);

Of course there is already the substition feature which eases life.
But what about doing?

if(logger.isDebugEnabled) {
  logger.debug("Hello").debug("Another").debug("Third");
}

It would be also nice, I guess.

Wdyt?

Cheers
Christian

-- 
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message