Code example for Logger

Methods: setLevel

0
 
    private final Logger log = Logger.getLogger("Minecraft.Freeze");
    private Server server;
    
    public void onEnable() { 
        log.setLevel(Level.INFO);
 
        server = getServer();
 
        FreezeCommandExecutor cmdX = new FreezeCommandExecutor();
        getCommand("freeze").setExecutor(cmdX);
 
        try { 
            Metrics metrics = new Metrics(this);
            metrics.start();
        } 
        catch (IOException e) {
            e.printStackTrace();
        } 
    }