-
Notifications
You must be signed in to change notification settings - Fork 255
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 year, minute to the --diagnostic
filename
#3751
Comments
Adding to next milestone, looks like low hanging fruit, and I don't think change of name in diag log should be considered a breaking change. |
Fine to me a format like that, keeping in mind that you should not take the "process_id" as guarantee for nothing, that id can be reused for different processes, maybe we can simply have time ordering, anyway today we have a retry loop if the file is already taken by someone else in the same folder so the order will be preserved and the pid says nothing about the nature of the file, maybe we can add the tfm the make easy to read it. |
@AliveDevil I did a check of the code and we're creating the file with the pattern
You can change the prefix using the option Now the logs are already "ordered", it's not clear to me what's the difference if we change the file name pattern. Can you elaborate why the current stable ordering is not enough? You'll have always the log files ordered and adding the PID doesn't change much, the time granularity is small enough to make it useless for ordering scope. |
When the format really is:
I'm missing a two digit minutes field there. Thus a diagnostics log for
I thought it was the PID, because it was just random garbage which didn't end up making any sense when combined with the explorer reported date (and five digit process ids arent that uncommon). |
Ok now it's clear my bad, we can add back the minute(we wanted to have short name as possible), usually I don't expect users will parse the filename and the creation time should be used for the ordering(done by OS and preserved with the copy). |
--diagnostic
-log not sort-by-name friendly--diagnostic
filename
--diagnostic
filename--diagnostic
filename
Describe the bug
The
--diagnostic
-option creates files with an opaque, non-modified date sorting friendly file name.Steps To Reproduce
--diagnostic
, when process Ids are recycled, the name sorting option is useless.Expected behavior
Some name sorting friendly file prefix (i.e.
log_yyyymmddThhmmss_ProcessId.diag
).Actual behavior
The text was updated successfully, but these errors were encountered: