-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a logger option to print timestamps in UTC for log traces #10
Comments
Also noticed a typo in Helpers.ps1:
|
HowardWolosky
pushed a commit
that referenced
this issue
Jan 27, 2017
Write-Log is used for writing all messages to the console and the log file. It embeds a timestamp with each message, but this timestamp uses LocalTime. A request has come in to optionally allow users to have this timestamp recorded in UTC instead of LocalTime. This adds a new global variable $global:SBUseUTC that defaults to $false. If set to $true, then Write-Log will use UTC for the timestamps, appending a "Z" to the end of the timestamp based on http://www.w3.org/TR/NOTE-datetime. The documentation has been updated to reflect this new configuration option. * Additionally fixed a typo in Write-Log where it was trying to call Write-Debug. Resolves #10: Add a logger option to print timestamps in UTC for log traces
HowardWolosky
pushed a commit
that referenced
this issue
Feb 7, 2017
Write-Log is used for writing all messages to the console and the log file. It embeds a timestamp with each message, but this timestamp uses LocalTime. A request has come in to optionally allow users to have this timestamp recorded in UTC instead of LocalTime. This adds a new global variable $global:SBUseUTC that defaults to $false. If set to $true, then Write-Log will use UTC for the timestamps, appending a "Z" to the end of the timestamp based on http://www.w3.org/TR/NOTE-datetime. The documentation has been updated to reflect this new configuration option. * Additionally fixed a typo in Write-Log where it was trying to call Write-Debug. Resolves #10: Add a logger option to print timestamps in UTC for log traces
HowardWolosky
added a commit
that referenced
this issue
Feb 10, 2017
Write-Log is used for writing all messages to the console and the log file. It embeds a timestamp with each message, but this timestamp uses LocalTime. A request has come in to optionally allow users to have this timestamp recorded in UTC instead of LocalTime. This adds a new global variable $global:SBUseUTC that defaults to $false. If set to $true, then Write-Log will use UTC for the timestamps, appending a "Z" to the end of the timestamp based on http://www.w3.org/TR/NOTE-datetime. The documentation has been updated to reflect this new configuration option. * Additionally fixed a typo in Write-Log where it was trying to call Write-Debug. Resolves #10: Add a logger option to print timestamps in UTC for log traces
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the logger outputs timestamps (which are super useful for diagnosis), but they default to local time.
When StoreBroker is used in conjunction with web applications, being able to output UTC timestamps will simplify correlating with other log sources that do the same.
The text was updated successfully, but these errors were encountered: