Is it good to do it; to log in using this method?
public static void log(final Object... messages) {
logger.info(Joiner.on(',').useForNull("null").join(messages));
}
// Where in other parts of the code we can call the logger method, using a comma instead of string concatenation. Note that Joiner is a guava class.
log(" Check ",obja.getXXX(),anotherObject.getMethod());
Waiting is clean code, usability and performance.
source
share