From ef507b147a8a0c7d209b62303de50fb895851c82 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 26 Oct 2024 11:08:49 +0100 Subject: Improve error logging in various places --- .../src/main/java/me/lucko/spark/common/SparkPlugin.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java') diff --git a/spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java b/spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java index bf745df..9901bdb 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java +++ b/spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java @@ -36,17 +36,17 @@ import me.lucko.spark.common.tick.TickReporter; import me.lucko.spark.common.util.classfinder.ClassFinder; import me.lucko.spark.common.util.classfinder.FallbackClassFinder; import me.lucko.spark.common.util.classfinder.InstrumentationClassFinder; +import me.lucko.spark.common.util.log.Logger; import java.nio.file.Path; import java.util.Collection; import java.util.Collections; -import java.util.logging.Level; import java.util.stream.Stream; /** * Spark plugin interface */ -public interface SparkPlugin { +public interface SparkPlugin extends Logger { /** * Gets the version of the plugin. @@ -92,14 +92,6 @@ public interface SparkPlugin { throw new UnsupportedOperationException(); } - /** - * Print to the plugin logger. - * - * @param level the log level - * @param msg the message - */ - void log(Level level, String msg); - /** * Gets the default {@link ThreadDumper} to be used by the plugin. * -- cgit