aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark/common/SparkPlugin.java
diff options
context:
space:
mode:
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.java9
1 files changed, 9 insertions, 0 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 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;
/**
@@ -72,6 +73,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.
*
* @return the default thread dumper