FileDocCategorySizeDatePackage
LogTest.javaAPI DocExample564Sat Apr 23 22:35:36 BST 2005None

LogTest.java

import java.util.logging.*;

public class LogTest {
    public static void main(String argv[]) {
        Logger logger = Logger.getLogger("com.oreilly.LogTest");

        logger.severe("Power lost - running on backup!");
        logger.warning("Database connection lost, retrying...");
        logger.info("Startup complete.");
        logger.config("Server configuration: standalone, JVM version 1.4");
        logger.fine("Loading graphing package.");
        logger.finer("Doing pie chart");
        logger.finest("Starting bubble sort: value ="+42);
    }
}