From f8ffdef321f6818d9ff6e2a763501f92e4a05c8b Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 25 Apr 2018 12:06:02 -0400 Subject: remove unused monitor setting --- src/SMAPI/Framework/Monitor.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/SMAPI/Framework/Monitor.cs b/src/SMAPI/Framework/Monitor.cs index 210a059d..cc511ed4 100644 --- a/src/SMAPI/Framework/Monitor.cs +++ b/src/SMAPI/Framework/Monitor.cs @@ -48,9 +48,6 @@ namespace StardewModdingAPI.Framework /// Whether to write anything to the console. This should be disabled if no console is available. internal bool WriteToConsole { get; set; } = true; - /// Whether to write anything to the log file. This should almost always be enabled. - internal bool WriteToFile { get; set; } = true; - /********* ** Public methods @@ -96,8 +93,7 @@ namespace StardewModdingAPI.Framework { if (this.WriteToConsole) this.ConsoleManager.ExclusiveWriteWithoutInterception(Console.WriteLine); - if (this.WriteToFile) - this.LogFile.WriteLine(""); + this.LogFile.WriteLine(""); } /// Log console input from the user. @@ -105,11 +101,8 @@ namespace StardewModdingAPI.Framework internal void LogUserInput(string input) { // user input already appears in the console, so just need to write to file - if (this.WriteToFile) - { - string prefix = this.GenerateMessagePrefix(this.Source, LogLevel.Info); - this.LogFile.WriteLine($"{prefix} $>{input}"); - } + string prefix = this.GenerateMessagePrefix(this.Source, LogLevel.Info); + this.LogFile.WriteLine($"{prefix} $>{input}"); } @@ -155,8 +148,7 @@ namespace StardewModdingAPI.Framework } // write to log file - if (this.WriteToFile) - this.LogFile.WriteLine(fullMessage); + this.LogFile.WriteLine(fullMessage); } /// Generate a message prefix for the current time. -- cgit