EZLog
EZLog copied to clipboard
Support for TimeZone
Great module Arnaud!
Would it be possible to add support for TimeZone OR Set the time to UTC/GMT by default. This becomes very helpful when you compare logs coming from different machines located in different parts of the world.
Let me know your thoughts.
I was thinking to contribute to your module initially but I'm not sure if this will break the current usages that users are making of it.
Thanks FX!
That's a good suggestion. I'll definitely address this need. Don't hesitate to send a pull request if you want to contribute, your contributions are welcome!
It could be implemented as a switch passed with the header. I'm thinking of a switch like "-UTC". What do you think about it?
That could be one solution however you won't know which parameter was used when looking at the log.
So I'm thinking, this should be included in the metadata of the log. This way, if you ever need to parse multiple logs you can pre-check all the logs use the same timezone. What do you think ?
I'll propose something in a PR, feel free to comment/reject.
This is the next item on my to list. ;-) I will - as you suggested - update the metadata section to add this info. This way it will be easily understandable by ConvertFrom-EzLog.