diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-06 10:30:25 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-06 10:30:25 -0500 |
commit | f9aa76e41f84ff9ec70dc9bf5178f50617e45424 (patch) | |
tree | 11b94db45b62a2fa6dcd6fbc4fdcb1b8fa6caba6 /src/StardewModdingAPI/LogInfo.cs | |
parent | 07d0dc38ca210a82264841fd7fe8d2040acee61d (diff) | |
download | SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.gz SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.bz2 SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.zip |
use more nuanced deprecation warnings (#165)
Diffstat (limited to 'src/StardewModdingAPI/LogInfo.cs')
-rw-r--r-- | src/StardewModdingAPI/LogInfo.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/LogInfo.cs b/src/StardewModdingAPI/LogInfo.cs index 2e8d42b6..ffef7cef 100644 --- a/src/StardewModdingAPI/LogInfo.cs +++ b/src/StardewModdingAPI/LogInfo.cs @@ -20,6 +20,9 @@ namespace StardewModdingAPI /// <summary>The message color.</summary> public ConsoleColor Colour { get; set; } + /// <summary>Whether the message should be printed to the console.</summary> + internal bool PrintConsole { get; set; } + /********* ** Public methods @@ -35,6 +38,7 @@ namespace StardewModdingAPI this.LogDate = DateTime.Now.ToString("yyyy-MM-dd"); this.LogTime = DateTime.Now.ToString("HH:mm:ss"); this.Colour = color; + this.PrintConsole = true; } } } |