diff options
Diffstat (limited to 'src/StardewModdingAPI/Logger.cs')
-rw-r--r-- | src/StardewModdingAPI/Logger.cs | 40 |
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; - } - } -} |