package org.dynmap;

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

public class Log {
    protected static Logger log = Logger.getLogger("Minecraft");
    protected static String prefix = "[dynmap] ";
    public static boolean verbose = false;
    public static void setLogger(Logger logger, String pre) {
        log = logger;
        if((pre != null) && (pre.length() > 0))
            prefix = pre + " ";
        else
            prefix = "";
    }
    public static void info(String msg) {
        log.log(Level.INFO, prefix + msg);
    }
    public static void verboseinfo(String msg) {
        if(verbose)
            log.log(Level.INFO, prefix + msg);
    }
    public static void severe(Throwable e) {
        log.log(Level.SEVERE, prefix + "Exception occured: ", e);
    }
    public static void severe(String msg) {
        log.log(Level.SEVERE, prefix + msg);
    }
    public static void severe(String msg, Throwable e) {
        log.log(Level.SEVERE, prefix + msg, e);
    }
    public static void warning(String msg) {
        log.log(Level.WARNING, prefix + msg);
    }
    public static void warning(String msg, Throwable e) {
        log.log(Level.WARNING, prefix + msg, e);
    }
}

@@ -155,17 +155,14 @@
 er(%22
-Minecraft
+Dynmap
 %22);%0A
@@ -203,17 +203,8 @@
  = %22
-%5Bdynmap%5D 
 %22;%0A 

Switch logger to default to dynmap-specific logger