Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.logging.Level;
import java.util.logging.Logger;

public class Main {
    public static void main(String[] argv) throws Exception {
    }

    // Return the level of the specified logger.
    public static Level getLevel(Logger logger) {
        Level level = logger.getLevel();
        while (level == null && logger.getParent() != null) {
            logger = logger.getParent();
            level = logger.getLevel();
        }
        return level;
    }
}