2020-03-21 00:37:09 +00:00
|
|
|
package de.wwwu.awolf.presenter.util;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.log4j.Logger;
|
|
|
|
|
|
|
|
public class Logging {
|
|
|
|
private static Logger logger = Logger.getRootLogger();
|
|
|
|
|
2020-03-28 15:24:35 +00:00
|
|
|
private Logging() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-04-05 17:28:38 +00:00
|
|
|
|
2020-03-23 20:58:39 +00:00
|
|
|
|
|
|
|
private static Logger getLogger() {
|
|
|
|
return logger;
|
2020-03-23 06:58:40 +00:00
|
|
|
}
|
|
|
|
|
2020-03-21 00:37:09 +00:00
|
|
|
public static void logInfo(final String message, Throwable throwable) {
|
|
|
|
logger.info(message, throwable);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logInfo(final String message) {
|
|
|
|
logger.info(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logDebug(final String message, Throwable throwable) {
|
|
|
|
logger.debug(message, throwable);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logDebug(final String message) {
|
|
|
|
logger.debug(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logWarning(final String message, Throwable throwable) {
|
|
|
|
logger.warn(message, throwable);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logWarning(final String message) {
|
|
|
|
logger.warn(message);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logError(final String message, Throwable throwable) {
|
|
|
|
logger.error(message, throwable);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void logError(final String message) {
|
|
|
|
logger.error(message);
|
|
|
|
}
|
|
|
|
}
|