Logger.log (Level, String msg, Object... vargs) (original) (raw)

Andy Malakov amalakov at deltixlab.com
Mon Jul 27 13:13:26 UTC 2009


Hello All,

Will it be possible to add var-args logging method to java.util.logging.Logger class?

It will be nice to have

Logger.log (Level level, String msg, Object ... varags) in addition to existing Logger.log (Level level, String msg, Object [] varags) ?

So that one can write

logger.log (Level.FINEST, "User {0} submitted {1}", user, request)

rather than

logger.log (Level.FINEST, "User {0} submitted {1}", new Object [] { user, request}) ?

If this is not the right place to post such suggestions, please advise where should I go?

Best regards, Andy



More information about the core-libs-dev mailing list