summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-08 02:18:58 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-08 02:18:58 -0400
commit85f609dc6c2f02d89b9fccaacfe837f8822d6b7c (patch)
treee4c62d91cf63f9828e6295f6ee2afb7eff53c727 /src/StardewModdingAPI/Program.cs
parent72a0b4fc6d268c67c3fba171793d5864f9710276 (diff)
downloadSMAPI-85f609dc6c2f02d89b9fccaacfe837f8822d6b7c.tar.gz
SMAPI-85f609dc6c2f02d89b9fccaacfe837f8822d6b7c.tar.bz2
SMAPI-85f609dc6c2f02d89b9fccaacfe837f8822d6b7c.zip
add optional verbose context logging
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 1e5fcfc3..1913544f 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -230,6 +230,7 @@ namespace StardewModdingAPI
{
// load settings
this.Settings = JsonConvert.DeserializeObject<SConfig>(File.ReadAllText(Constants.ApiConfigPath));
+ this.GameInstance.VerboseLogging = this.Settings.VerboseLogging;
// load core components
this.ModRegistry = new ModRegistry(this.Settings.ModCompatibility);
@@ -266,6 +267,8 @@ namespace StardewModdingAPI
this.Monitor.Log($"You configured SMAPI to not check for updates. Running an old version of SMAPI is not recommended. You can enable update checks by reinstalling SMAPI or editing {Constants.ApiConfigPath}.", LogLevel.Warn);
if (!this.Monitor.WriteToConsole)
this.Monitor.Log("Writing to the terminal is disabled because the --no-terminal argument was received. This usually means launching the terminal failed.", LogLevel.Warn);
+ if (this.Settings.VerboseLogging)
+ this.Monitor.Log("Verbose logging enabled.", LogLevel.Trace);
// validate XNB integrity
if (!this.ValidateContentIntegrity())