-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Prepend timestamps option -t
is no longer supported in v0.12.0-beta1
#1236
Comments
The time is always recorded for every line piped into lnav now. It’s stored in the file of captured output. In the TEXT view you can see the timestamp for the current line in the breadcrumb bar and you can press shift+t to show the time differences between lines. I felt that covered the functionality of the -t flag, so I removed it. |
Basically, I removed the functionality. Although, it looks like I should add it back, but in a different form... I wasn't sure how often The main use I had for it was the time difference stuff and I didn't need the actual timestamps. But, it looks like the program you're piping into lnav is generating real log messages that you might want to merge with other log files. I'll see about adding a way to run a command to convert the text file to a log file (or maybe restore the |
Yeah I'm not sure how many people use it but it's often something I show to my colleagues over the years and becomes their daily driver. For now my workaround is to use a separate build but has the side effect of the timestamp parsing fix introduced sometime in v0.12. Appreciate the work and fast responses! Thanks so much! |
I've pushed a change to restore the Thanks for taking the time to file this bug. |
Thanks for adding this non-trivial fix in so quickly! Hopefully it wasn't too distracting from other features. Just updated to and works like a charm! 🙏 |
Out of curiosity – is the above no longer the case? |
This is still true.
Yes, this is what happens when |
lnav version
lnav 0.12.0-beta1-24-gc68b7ec
Describe the bug
In v0.11.2, we were able to use
lnav -t
to prepend timestamps to logs but inHEAD
(c68b7ec) this option no longer works.Error
To Reproduce
Steps to reproduce the behavior:
make 2>&1 | lnav -t
is no longer supportedThe text was updated successfully, but these errors were encountered: