diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-25 12:06:02 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-25 12:06:02 -0400 |
commit | f8ffdef321f6818d9ff6e2a763501f92e4a05c8b (patch) | |
tree | c5f2a281d1b6f56aae20415e806d0bfc4a43dd96 | |
parent | bd146e74e8970156da82684a821e5d29ad054b97 (diff) | |
download | SMAPI-f8ffdef321f6818d9ff6e2a763501f92e4a05c8b.tar.gz SMAPI-f8ffdef321f6818d9ff6e2a763501f92e4a05c8b.tar.bz2 SMAPI-f8ffdef321f6818d9ff6e2a763501f92e4a05c8b.zip |
remove unused monitor setting
-rw-r--r-- | src/SMAPI/Framework/Monitor.cs | 16 |
1 files 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 /// <summary>Whether to write anything to the console. This should be disabled if no console is available.</summary> internal bool WriteToConsole { get; set; } = true; - /// <summary>Whether to write anything to the log file. This should almost always be enabled.</summary> - 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(""); } /// <summary>Log console input from the user.</summary> @@ -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); } /// <summary>Generate a message prefix for the current time.</summary> |