Logging Framework Parameter Placeholders (SLF4J, JULI, Seam)
SLF4J
log.info("{}, {}", "Hello", "World");
JULI Logger
log.log(Level.INFO, "{0}, {1}", new Object[]{"Hello", "World"});
Seam Logger
log.info("#0, #1", "Hello", "World");
Written by hascode
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#