summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-02 21:24:32 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-02 21:24:32 -0400
commit6a628a4d8a21b98a55ff29065980fc818d4f39dc (patch)
tree6a68e9e7065d21102600ac7921807b5f7f54dd2e /src/StardewModdingAPI/Program.cs
parent0e6d30f65b562704675a20b1c4ce399787a68511 (diff)
downloadSMAPI-6a628a4d8a21b98a55ff29065980fc818d4f39dc.tar.gz
SMAPI-6a628a4d8a21b98a55ff29065980fc818d4f39dc.tar.bz2
SMAPI-6a628a4d8a21b98a55ff29065980fc818d4f39dc.zip
simplify log timestamps in console (except in developer mode)
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 70e53f5a..6a240a7b 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -346,6 +346,7 @@ namespace StardewModdingAPI
if (this.Settings.DeveloperMode)
{
this.Monitor.ShowTraceInConsole = true;
+ this.Monitor.ShowFullStampInConsole = true;
this.Monitor.Log($"You configured SMAPI to run in developer mode. The console may be much more verbose. You can disable developer mode by installing the non-developer version of SMAPI, or by editing {Constants.ApiConfigPath}.", LogLevel.Info);
}
if (!this.Settings.CheckForUpdates)
@@ -864,7 +865,12 @@ namespace StardewModdingAPI
/// <param name="name">The name of the module which will log messages with this instance.</param>
private Monitor GetSecondaryMonitor(string name)
{
- return new Monitor(name, this.ConsoleManager, this.LogFile, this.CancellationTokenSource) { WriteToConsole = this.Monitor.WriteToConsole, ShowTraceInConsole = this.Settings.DeveloperMode };
+ return new Monitor(name, this.ConsoleManager, this.LogFile, this.CancellationTokenSource)
+ {
+ WriteToConsole = this.Monitor.WriteToConsole,
+ ShowTraceInConsole = this.Settings.DeveloperMode,
+ ShowFullStampInConsole = this.Settings.DeveloperMode
+ };
}
/// <summary>Get a human-readable name for the current platform.</summary>