summaryrefslogtreecommitdiffstats
path: root/depends/launcher/org/multimc/Utils.java
diff options
context:
space:
mode:
Diffstat (limited to 'depends/launcher/org/multimc/Utils.java')
-rw-r--r--depends/launcher/org/multimc/Utils.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/depends/launcher/org/multimc/Utils.java b/depends/launcher/org/multimc/Utils.java
index c4d55b6e..df0ef861 100644
--- a/depends/launcher/org/multimc/Utils.java
+++ b/depends/launcher/org/multimc/Utils.java
@@ -153,4 +153,27 @@ public class Utils
}
return null;
}
+
+ /**
+ * Log to the MultiMC console
+ *
+ * @param message A String containing the message
+ * @param level A String containing the level name. See MinecraftProcess::getLevel()
+ */
+ public static void log(String message, String level)
+ {
+ // Kinda dirty
+ String tag = "!![" + level + "]!";
+ System.out.println(tag + message.replace("\n", "\n" + tag));
+ }
+
+ public static void log(String message)
+ {
+ log(message, "MultiMC");
+ }
+
+ public static void log()
+ {
+ System.out.println();
+ }
}