Ejemplo n.º 1
0
 public static void logException(Exception e, String m) {
   log(Level.SEVERE, "---------------------------------------");
   log(Level.SEVERE, "--- an unexpected error has occured ---");
   log(Level.SEVERE, "-- please send line below to the dev --");
   log(Level.SEVERE, "ThisLogMustDie! version " + instance.getDescription().getVersion());
   log(Level.SEVERE, "Bukkit version " + Bukkit.getServer().getVersion());
   log(Level.SEVERE, "Message: " + m);
   log(Level.SEVERE, e.toString() + " : " + e.getLocalizedMessage());
   for (StackTraceElement t : e.getStackTrace()) {
     log(Level.SEVERE, "\t" + t.toString());
   }
   log(Level.SEVERE, "---------------------------------------");
 }
Ejemplo n.º 2
0
 public static void log(Level level, String m) {
   instance.getLogger().log(level, m);
 }