logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Varargs in JDK 1.5 will help loggers (a bit)
Date Fri, 04 Jul 2003 14:39:31 GMT

With Java 1.5, AKA Tiger, Java will get varargs support, which means 
that methods can have a variable number of parameters.

Imagine

   log("The error", a, c, exception, f[i])

Instead of

  log("The error "+ a + "\n"+ c + exception.toString + String.valueOf(f[i]))

@see http://www.madbean.com/blog/22/

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------



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


Mime
View raw message