summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/LogInfo.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-07 23:34:52 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-07 23:34:52 -0500
commit2b7abc3af5d9fb636123b734cd60dbd38448abd2 (patch)
tree76abd4518f52fe22665ed68c80f3eacfec1f3033 /src/StardewModdingAPI/LogInfo.cs
parent84bc32c3f19f0835e5a12f61fa707221d33b4820 (diff)
downloadSMAPI-2b7abc3af5d9fb636123b734cd60dbd38448abd2.tar.gz
SMAPI-2b7abc3af5d9fb636123b734cd60dbd38448abd2.tar.bz2
SMAPI-2b7abc3af5d9fb636123b734cd60dbd38448abd2.zip
clean up more obsolete code (#231)
Diffstat (limited to 'src/StardewModdingAPI/LogInfo.cs')
-rw-r--r--src/StardewModdingAPI/LogInfo.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/StardewModdingAPI/LogInfo.cs b/src/StardewModdingAPI/LogInfo.cs
deleted file mode 100644
index ffef7cef..00000000
--- a/src/StardewModdingAPI/LogInfo.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-
-namespace StardewModdingAPI
-{
- /// <summary>A message queued for log output.</summary>
- public struct LogInfo
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The message to log.</summary>
- public string Message { get; set; }
-
- /// <summary>The log date.</summary>
- public string LogDate { get; set; }
-
- /// <summary>The log time.</summary>
- public string LogTime { get; set; }
-
- /// <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
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="message">The message to log.</param>
- /// <param name="color">The message color.</param>
- public LogInfo(string message, ConsoleColor color = ConsoleColor.Gray)
- {
- if (string.IsNullOrEmpty(message))
- message = "[null]";
- this.Message = message;
- this.LogDate = DateTime.Now.ToString("yyyy-MM-dd");
- this.LogTime = DateTime.Now.ToString("HH:mm:ss");
- this.Colour = color;
- this.PrintConsole = true;
- }
- }
-}