summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Monitor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Framework/Monitor.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Monitor.cs9
1 files changed, 9 insertions, 0 deletions
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();
}
+ /// <summary>Write a newline to the console and log file.</summary>
+ internal void Newline()
+ {
+ if (this.WriteToConsole)
+ this.ConsoleManager.ExclusiveWriteWithoutInterception(Console.WriteLine);
+ if (this.WriteToFile)
+ this.LogFile.WriteLine("");
+ }
+
/// <summary>Log a message for the player or developer, using the specified console color.</summary>
/// <param name="source">The name of the mod logging the message.</param>
/// <param name="message">The message to log.</param>