summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Logger.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 20:01:45 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-04 20:01:45 -0400
commit4c7329d75e5baf3819852f77367c1c47ce57fcb4 (patch)
tree08eaa45f36de81712d5d979acceb8babd20979b8 /src/StardewModdingAPI/Logger.cs
parent5fd708e43f6576cc71b80406de602adbdef98f56 (diff)
downloadSMAPI-4c7329d75e5baf3819852f77367c1c47ce57fcb4.tar.gz
SMAPI-4c7329d75e5baf3819852f77367c1c47ce57fcb4.tar.bz2
SMAPI-4c7329d75e5baf3819852f77367c1c47ce57fcb4.zip
make log writer internal (not meant for use outside SMAPI)
Diffstat (limited to 'src/StardewModdingAPI/Logger.cs')
-rw-r--r--src/StardewModdingAPI/Logger.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/StardewModdingAPI/Logger.cs b/src/StardewModdingAPI/Logger.cs
deleted file mode 100644
index f0f08e4f..00000000
--- a/src/StardewModdingAPI/Logger.cs
+++ /dev/null
@@ -1,40 +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; }
-
-
- /*********
- ** 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.fff tt");
- this.Colour = color;
- }
- }
-}