Log format .json for Rust Crate: 'env_logger' #1279
cameronelliott
started this conversation in
General
Replies: 2 comments 6 replies
-
It looks like there's not a builtin log format that recognizes these types of messages. I don't have any time right this second, but can work on it tonight/tomorrow. If you want to give it a go, try the regex101 integration for creating a log format. That's what I will be doing. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Making some progress with crate |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am new to lnav, but it looks pretty slick!
I'd like it use it with Rust, and it seems
env_logger
is one of the most popular formatters for the Rustlog
crate and logging ecosystem.It's default logs look like:
I did some investigating to see if there was maybe a pre-existing format to use. Syslog could work, but it seems less than ideal to me, honestly.
Anyway I'd like to hear if there is a good or recommended setup for Rust that I somehow overlooked.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions