summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/LogWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Framework/LogWriter.cs')
-rw-r--r--src/StardewModdingAPI/Framework/LogWriter.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/LogWriter.cs b/src/StardewModdingAPI/Framework/LogWriter.cs
index 64769d2e..c21d53f4 100644
--- a/src/StardewModdingAPI/Framework/LogWriter.cs
+++ b/src/StardewModdingAPI/Framework/LogWriter.cs
@@ -74,9 +74,12 @@ namespace StardewModdingAPI.Framework
{
string message = $"[{entry.LogTime}] {entry.Message}";
- Console.ForegroundColor = entry.Colour;
- Console.WriteLine(message);
- Console.ForegroundColor = ConsoleColor.Gray;
+ if (entry.PrintConsole)
+ {
+ Console.ForegroundColor = entry.Colour;
+ Console.WriteLine(message);
+ Console.ForegroundColor = ConsoleColor.Gray;
+ }
this.FileStream.WriteLine(message);
}