Java tutorial
import java.util.logging.Logger; public class MainClass { public static void main(String[] args) { Logger logger = Logger.getLogger("com.java2s.log"); logger.severe("severe"); logger.warning("warning"); logger.info("info"); logger.config("config"); logger.fine("fine"); logger.finer("finer"); logger.finest("value =" + 42); } }