diff options
-rw-r--r-- | release-notes.md | 2 | ||||
-rw-r--r-- | src/StardewModdingAPI/Log.cs | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/release-notes.md b/release-notes.md index 3450c16d..2a6506e5 100644 --- a/release-notes.md +++ b/release-notes.md @@ -6,6 +6,8 @@ See [log](https://github.com/CLxS/SMAPI/compare/1.1...master). This is a patch release that addresses compatibility with older mods. * Fixed deprecation warnings being repeated if the mod can't be identified. +* Fixed compatibility with mods that use `Log.Out`. + ## 1.1 See [log](https://github.com/CLxS/SMAPI/compare/1.0...1.1). 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) |