From f77d80d6f9e7ed067142fb87aa6ace6443a51e22 Mon Sep 17 00:00:00 2001 From: McAndersDK <anders@loret.dk> Date: Fri, 18 Sep 2015 10:22:44 +0200 Subject: [PATCH 1/4] Update LogFile.cs Adding Consistency to the log format. --- LogFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogFile.cs b/LogFile.cs index 707cc7d..a82aa69 100644 --- a/LogFile.cs +++ b/LogFile.cs @@ -119,7 +119,7 @@ public override void WriteOutput(string message) CheckDirectory(); if (message.Trim() != String.Empty) { - message = String.Format("{0,-29} - {1}", DateTime.Now.ToString(DateTimeFormat), message); + message = String.Format("{0,-29} - [I] {1}", DateTime.Now.ToString(DateTimeFormat), message); } File.AppendAllText(System.IO.Path.Combine(path, fileName), message); From e24babeba09b8662cff25c990727fee016114412 Mon Sep 17 00:00:00 2001 From: McAndersDK <anders@loret.dk> Date: Fri, 18 Sep 2015 11:44:41 +0200 Subject: [PATCH 2/4] Update LogFile.cs ISO Date Time Format. --- LogFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogFile.cs b/LogFile.cs index a82aa69..fc95583 100644 --- a/LogFile.cs +++ b/LogFile.cs @@ -11,7 +11,7 @@ public class LogFile : HostIOSubscriberBase { #region Fields - private const string DateTimeFormat = "r"; + private const string DateTimeFormat = "yyyy-MM-ddThh:mm:ssK"; private readonly string fileName; private readonly string path; From 6eb9fb5c52b94d48e2bc5da52c80051e32a8ca47 Mon Sep 17 00:00:00 2001 From: McAndersDK <anders@loret.dk> Date: Sun, 20 Sep 2015 13:40:21 +0200 Subject: [PATCH 3/4] Update README.md Removed link to Dave's public Technet gallary module. As this repos is not the same code as Dave's. --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 300a7ef..43d4947 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,5 @@ subscriber objects for the purpose of producing complete log files of script output (including date/timestamps) without the need for extra code by the script author. -The source code is maintained on GitHub. If you would like to use -the module but can't compile it yourself, you can download a zip file -of the module from: +The source code is maintained on GitHub. -http://gallery.technet.microsoft.com/scriptcenter/Enhanced-Script-Logging-27615f85 From 3f743046239983e8d675da0ad5b3bc08ca09abc3 Mon Sep 17 00:00:00 2001 From: unknown <aan@T440SW7OP81.nclan.netcompany.dk> Date: Mon, 5 Oct 2015 20:42:54 +0200 Subject: [PATCH 4/4] Revert "Update README.md" This reverts commit 6eb9fb5c52b94d48e2bc5da52c80051e32a8ca47. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43d4947..300a7ef 100644 --- a/README.md +++ b/README.md @@ -6,5 +6,8 @@ subscriber objects for the purpose of producing complete log files of script output (including date/timestamps) without the need for extra code by the script author. -The source code is maintained on GitHub. +The source code is maintained on GitHub. If you would like to use +the module but can't compile it yourself, you can download a zip file +of the module from: +http://gallery.technet.microsoft.com/scriptcenter/Enhanced-Script-Logging-27615f85