Sunday, 1 May 2016
Starting MongoDB with Powershell and a UTC timestamp dated log file
When starting MongoDB using PowerShell you may want to create a log file at start up. One technique that is useful is to have the log file use UTC time as the file name such as:
Why? So there is no problem with daylight savings time or people in different locations supporting applications being unsure of the correct start/stop times for a process.
Anyway, it's a very small piece of code and it's on GitHub. If you see anything wrong, feel free to do what you need..