diff options
author | Luck <git@lucko.me> | 2024-10-26 11:08:49 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2024-10-26 11:08:49 +0100 |
commit | ef507b147a8a0c7d209b62303de50fb895851c82 (patch) | |
tree | 5598bacf0dd887914921c0186cc0c3d48df7ab1d /spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java | |
parent | c58ddcfc37971178087d7637979a2c17e9a44d09 (diff) | |
download | spark-ef507b147a8a0c7d209b62303de50fb895851c82.tar.gz spark-ef507b147a8a0c7d209b62303de50fb895851c82.tar.bz2 spark-ef507b147a8a0c7d209b62303de50fb895851c82.zip |
Improve error logging in various places
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java | 12 |
1 files changed, 2 insertions, 10 deletions
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. @@ -93,14 +93,6 @@ public interface SparkPlugin { } /** - * 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. * * @return the default thread dumper |