package org.dynmap;

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

public class Log {
    protected static final Logger log = Logger.getLogger("Minecraft");
    protected static final String LOG_PREFIX = "[dynmap] ";
    public static boolean verbose = false;
    public static void info(String msg) {
        log.log(Level.INFO, LOG_PREFIX + msg);
    }
    public static void verboseinfo(String msg) {
        if(verbose)
            log.log(Level.INFO, LOG_PREFIX + msg);
    }
    public static void severe(Throwable e) {
        log.log(Level.SEVERE, LOG_PREFIX + "Exception occured: ", e);
    }
    public static void severe(String msg) {
        log.log(Level.SEVERE, LOG_PREFIX + msg);
    }
    public static void severe(String msg, Throwable e) {
        log.log(Level.SEVERE, LOG_PREFIX + msg, e);
    }
    public static void warning(String msg) {
        log.log(Level.WARNING, LOG_PREFIX + msg);
    }
    public static void warning(String msg, Throwable e) {
        log.log(Level.WARNING, LOG_PREFIX + msg, e);
    }
}

@@ -120,22 +120,16 @@
  static 
-final 
 Logger l
@@ -189,31 +189,21 @@
 tic 
-final 
 String 
-LOG_PREFIX
+prefix
  = %22
@@ -257,16 +257,224 @@
  false;%0A
+    public static void setLogger(Logger logger, String pre) %7B%0A        log = logger;%0A        if((pre != null) && (pre.length() %3E 0))%0A            prefix = pre + %22 %22;%0A        else%0A            prefix = %22%22;%0A    %7D%0A
     publ
@@ -531,34 +531,30 @@
 Level.INFO, 
-LOG_PREFIX
+prefix
  + msg);%0A   
@@ -657,26 +657,22 @@
 l.INFO, 
-LOG_PREFIX
+prefix
  + msg);
@@ -753,26 +753,22 @@
 SEVERE, 
-LOG_PREFIX
+prefix
  + %22Exce
@@ -865,34 +865,30 @@
 vel.SEVERE, 
-LOG_PREFIX
+prefix
  + msg);%0A   
@@ -977,26 +977,22 @@
 SEVERE, 
-LOG_PREFIX
+prefix
  + msg, 
@@ -1073,34 +1073,30 @@
 el.WARNING, 
-LOG_PREFIX
+prefix
  + msg);%0A   
@@ -1191,18 +1191,14 @@
 NG, 
-LOG_PREFIX
+prefix
  + m

Add support for injecting logger to core