←back to thread

156 points alexzeitler | 2 comments | | HN request time: 0.439s | source
1. synergy20 ◴[] No.40722166[source]
I ended up using vim for log files, it recognizes messages and log files and highlight them automatically and I can also edit them if needed.
replies(1): >>40723828 #
2. tstack ◴[] No.40723828[source]
> I can also edit them if needed.

That doesn't seem .. wise. lnav has support for filtering, bookmarking, and attaching tags/comments[1] to log messages so that editing the log file isn't required. The filters, bookmarks, tags, and comments are saved separately so they can be restored when the file(s) are reopened.

[1] - https://docs.lnav.org/en/v0.12.2/usage.html#taking-notes