import java.util.logging.Level; import java.util.logging.Logger; public class MainClass { private static Logger logger = Logger.getLogger("InfoLogging2"); public static void main(String[] args) { logger.logp(Level.INFO, "InfoLogging2", "main", "Logging an INFO-level message"); } }