0

Drop LocationAwareLogger, as it is unnecessary

This commit is contained in:
rjenkinsjr
2016-03-28 20:46:57 -04:00
parent ac1ff26365
commit e1eced5198

View File

@@ -56,7 +56,6 @@ import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;
import org.slf4j.Marker;
import org.slf4j.helpers.FormattingTuple;
import org.slf4j.helpers.MarkerIgnoringBase;
import org.slf4j.helpers.MessageFormatter;
@@ -162,9 +161,7 @@ import org.yaml.snakeyaml.Yaml;
* @author Peter Royal
* @author Ronald Jack Jenkins Jr.
*/
public final class BukkitPluginLoggerAdapter extends MarkerIgnoringBase
implements
LocationAwareLogger {
public final class BukkitPluginLoggerAdapter extends MarkerIgnoringBase {
// Plugin reference.
private static transient Plugin BUKKIT_PLUGIN;
@@ -503,17 +500,6 @@ public final class BukkitPluginLoggerAdapter extends MarkerIgnoringBase
return this.isLevelEnabled(BukkitPluginLoggerAdapter.LOG_LEVEL_WARN);
}
/**
* Location-aware logging capability. The marker and argArray are ignored.
*/
@Override
public void log(final Marker marker, final String callerFQCN,
final int level, final String message,
final Object[] argArray, final Throwable t) {
if (!this.isLevelEnabled(level)) { return; }
this.log(callerFQCN, level, message, t);
}
/**
* A simple implementation which logs messages of level TRACE according
* to the format outlined above.