-
Notifications
You must be signed in to change notification settings - Fork 715
Option to hide timestamps on console logs page #6820
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
Conversation
|
Cut the date, but keep the time. The dashboard is not typically used to inspect data from long time periods ago, but understanding the delta and frequency of the log messages based on time is important. Showing a long date isn't needed. |
Ya agree with @samsp-msft here. However this is implemented should play nicely with what we decide to do in the future if we start saving dashboard UI state for a local user - ie, resizing/hiding/adding columns, details window pane size |
|
Today the timestamp matches the ISO 8601 standard. All developers will recognize what it is. I hesitate to change it to just the time, because then it's no longer immediately recognisable as a timestamp. I also don't want to overload the user with choice. I think the best choices are simple on and off, which means show all (full timestamp) or nothing. |
|
This looks good to me, but a request if possible would be to add a command to toggle UTC/local time |
This makes sense. I'd keep it on by default then, but add the option to change it. I think most people are going to expect timestamps like a regular logfile |
|
The experience here isn't a log file though, it's console output. A default console doesn't include a timestamp with every line. e.g. Windows command prompt or Windows terminal don't include a timestamp. |
|
Sure - but we call them "console logs" on the dashboard and I feel like they're spiritually logs. I'm willing to bend if you and others (@leslierichardson95 mainly) feel strongly that it's worth changing the default behavior though |
|
My vote would be to keep timestamps by default. They add a lot of information when looking at logs to understand system behaviour, and if users don't find the option to turn them on then they'll be missing out on that info. I agree with @samsp-msft that the date could be hidden by default though. I don't think a value like |
|
PR feedback applied. Seems like consensus is to leave timestamp by default. Further changes to tweak page can be in follow up PRs. |
|
BTW this PR depends on #6819 being merged first. |
dc03006 to
7ad28fd
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Description
Fixes #5457
Demo:
Checklist
<remarks />and<code />elements on your triple slash comments?breaking-changetemplate):doc-ideatemplate):Microsoft Reviewers: Open in CodeFlow