package org.hyperledger.fabricjavasdk.util;

import java.util.logging.Level;

public class Logger {
	private java.util.logging.Logger logger = null;
	
	private Logger(@SuppressWarnings("rawtypes") Class clazz) {
		this.logger = java.util.logging.Logger.getLogger(clazz.getName());
	}
	
	public static Logger getLogger(@SuppressWarnings("rawtypes") Class clazz) {
		return new Logger(clazz);
	}
		
	public void info(String message) {
		logger.info(message);
	}
	
	public void info(String message, Object... args) {
		logger.log(Level.INFO, message, args);
	}
	
	public void warn(String message) {
		logger.warning(message);
	}
	
	public void warn(String message, Object... args) {
		logger.log(Level.WARNING, message, args);
	}
	
	public void debug(String message) {
		logger.fine(message);
	}
	
	public void debug(String message, Object... args) {
		logger.log(Level.FINE, message, args);
	}
}

@@ -552,16 +552,30 @@
 l.INFO, 
+String.format(
 message,
@@ -572,32 +572,33 @@
 t(message, args)
+)
 ;%0D%0A%09%7D%0D%0A%09%0D%0A%09publi
@@ -744,16 +744,30 @@
 ARNING, 
+String.format(
 message,
@@ -768,24 +768,25 @@
 ssage, args)
+)
 ;%0D%0A%09%7D%0D%0A%09%0D%0A%09p
@@ -932,16 +932,30 @@
 l.FINE, 
+String.format(
 message,
@@ -960,16 +960,17 @@
 e, args)
+)
 ;%0D%0A%09%7D%0D%0A%7D

Use String.format for variable substitution in a log message