Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.logging.Logger;

public class Main {
    public static void main(String[] argv) throws Exception {
        Logger logger = Logger.getLogger("com.mycompany");

        // Stop forwarding log records to ancestor handlers
        logger.setUseParentHandlers(false);

        // Start forwarding log records to ancestor handlers
        logger.setUseParentHandlers(true);
    }
}