MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

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);
    }
}