From c9c354a66f3659bda9f1c8915ab61bc1a38412ef Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 2 Jul 2017 21:36:04 -0400 Subject: slim down console output for players some more --- src/StardewModdingAPI/Framework/Monitor.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/StardewModdingAPI/Framework') diff --git a/src/StardewModdingAPI/Framework/Monitor.cs b/src/StardewModdingAPI/Framework/Monitor.cs index b64b3b0b..7d40b72b 100644 --- a/src/StardewModdingAPI/Framework/Monitor.cs +++ b/src/StardewModdingAPI/Framework/Monitor.cs @@ -95,6 +95,15 @@ namespace StardewModdingAPI.Framework this.ExitTokenSource.Cancel(); } + /// Write a newline to the console and log file. + internal void Newline() + { + if (this.WriteToConsole) + this.ConsoleManager.ExclusiveWriteWithoutInterception(Console.WriteLine); + if (this.WriteToFile) + this.LogFile.WriteLine(""); + } + /// Log a message for the player or developer, using the specified console color. /// The name of the mod logging the message. /// The message to log. -- cgit