net.sourceforge.plantuml.log.Logme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.log;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Logme {
private static final Logger logger;
static {
logger = Logger.getLogger("com.plantuml");
logger.setUseParentHandlers(false);
final ConsoleHandler handler = new ConsoleHandler();
handler.setFormatter(new SimpleFormatter());
logger.addHandler(handler);
}
public static void error(Throwable thrown) {
logger.log(Level.SEVERE, "", thrown);
}
// Unused right now
//
// public static void error(String msg, Throwable thrown) {
// logger.log(Level.SEVERE, msg, thrown);
// }
//
// public static void error(String msg) {
// logger.log(Level.SEVERE, msg);
// }
}