From fe578229bf7e77b522eda8737374c2f26b30c24b Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 1 Nov 2021 20:45:46 +0000 Subject: async-profiler on macos --- .../src/main/java/me/lucko/spark/common/SparkPlugin.java | 9 +++++++++ 1 file changed, 9 insertions(+) (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 aa5112d..f312916 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 @@ -29,6 +29,7 @@ import me.lucko.spark.common.tick.TickReporter; import me.lucko.spark.common.util.ClassSourceLookup; import java.nio.file.Path; +import java.util.logging.Level; import java.util.stream.Stream; /** @@ -71,6 +72,14 @@ public interface SparkPlugin { */ void executeAsync(Runnable task); + /** + * 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