From f9aa76e41f84ff9ec70dc9bf5178f50617e45424 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 6 Nov 2016 10:30:25 -0500 Subject: use more nuanced deprecation warnings (#165) --- src/StardewModdingAPI/LogInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/StardewModdingAPI/LogInfo.cs') 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 /// The message color. public ConsoleColor Colour { get; set; } + /// Whether the message should be printed to the console. + 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; } } } -- cgit