Minimizing the Impact of Logging Code
import java.util.logging.Logger; public class Main { public static void main(String[] argv) throws Exception { int count = 123; Logger logger = Logger.getLogger("com.mycompany.MyClass"); logger.finest("count: " + count); } }