Giter Club home page Giter Club logo

Comments (8)

tstack avatar tstack commented on August 20, 2024 1

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 -t was used and I didn't like that people had to think ahead and remember to set the flag. I was also adding other functionality to run commands within lnav. So, I changed things around so that the timestamp was always recorded.

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 -t flag to do that conversion).

from lnav.

tstack avatar tstack commented on August 20, 2024

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.

from lnav.

lamchau avatar lamchau commented on August 20, 2024

ahh, thank you for the fast response! In v0.12 I can't seem to get the ISO format like we had in v0.11 - am I missing something?

v0.12

image

v0.11

image

from lnav.

lamchau avatar lamchau commented on August 20, 2024

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!

from lnav.

tstack avatar tstack commented on August 20, 2024

I've pushed a change to restore the -t flag, if you want to update and give it a try. I still need to add a separate command to convert a text file to a log.

Thanks for taking the time to file this bug.

from lnav.

lamchau avatar lamchau commented on August 20, 2024

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! πŸ™

from lnav.

piotr-dobrogost avatar piotr-dobrogost commented on August 20, 2024

The time is always recorded for every line piped into lnav now.

Out of curiosity – is the above no longer the case?
Wouldn't automatically recording time and using it as a timestamp if there's no timestamp detected in the input work?

from lnav.

tstack avatar tstack commented on August 20, 2024

The time is always recorded for every line piped into lnav now.
Out of curiosity – is the above no longer the case?

This is still true.

Wouldn't automatically recording time and using it as a timestamp if there's no timestamp detected in the input work?

Yes, this is what happens when -t is used now.

from lnav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.