diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-19 00:10:16 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-19 00:10:16 -0500 |
commit | 5e9b030ec7b975a59a3bac2f64ab5a3631aed9fe (patch) | |
tree | 01d48f93c77d4e2c91932f8b2893dea858a85e12 /src/StardewModdingAPI | |
parent | 6a48094995c0e9c47233ae5566c00a1aea3d164e (diff) | |
download | SMAPI-5e9b030ec7b975a59a3bac2f64ab5a3631aed9fe.tar.gz SMAPI-5e9b030ec7b975a59a3bac2f64ab5a3631aed9fe.tar.bz2 SMAPI-5e9b030ec7b975a59a3bac2f64ab5a3631aed9fe.zip |
fix compatibility with mods using Log.Out
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r-- | src/StardewModdingAPI/Log.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Log.cs b/src/StardewModdingAPI/Log.cs index 02455f3a..3ab9fe78 100644 --- a/src/StardewModdingAPI/Log.cs +++ b/src/StardewModdingAPI/Log.cs @@ -155,6 +155,14 @@ namespace StardewModdingAPI Log.Monitor.LegacyLog(Log.GetModName(), message?.ToString(), ConsoleColor.White, LogLevel.Info); } + /// <summary>Asynchronously log an info message to the console.</summary> + /// <param name="message">The message to log.</param> + public static void Out(object message) + { + Log.WarnDeprecated(); + Log.Async($"[OUT] {message}"); + } + /// <summary>Asynchronously log a debug message to the console.</summary> /// <param name="message">The message to log.</param> public static void Debug(object message) |