-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add support for new log formats #1286
base: master
Are you sure you want to change the base?
Conversation
The MR is WIP for now because I couldnt yet test Gitea and I2P log formats. I would not be comfortable with publishing the long log files that I used for testing the formats, but if you would like to, I can send them to you in email or some other channel. |
There are 2 things I wanted to ask you about the included log files. The first is, is it ok if the The second is that you may notice that I have used 2 kinds of nonstandard JSON values, "comment(s)" and "subformats". |
Ah, sorry, what version of lnav is crashing?
You can send them to [email protected]
That's fine.
Doesn't lnav spit out some warnings about these? The JSON parser that lnav uses allows C-style comments ( |
No problem. It is 0.11.2. The reason I was surprised is because I didn't remember updating since writing the affected formats.
Yes, it does. Its like this: "warning: unexpected value for property “/gitea_log/sample#/comment”"
Sure, I'll convert it soon. But it seems some text editors dont like it. They highlight this as an error, e.g. in vim and jetbrains idea. |
This version of the MR currently crashes because of the I2P format's regex. Regex101 says its ok, and removing any one of the 3 varaints in the outmost group fixes the crash. I'll open an issue for it. Edit: opened #1288 |
The I2P logs you sent seem to already match the |
Also, the virtiofsd log seems to be recognized by the Rust |
For the most part thats a good idea, duplication is not good, but I worry if the java log format would get too bloated in the future if it will implement support for other java based software too :/ But, maybe I just misunderstood its purpose. Java (the runtime) in itself does not really produce log messages, so I guess its logical to use it for java software using a common format. Though, how should I go about adapting the java_log format for I2P?
Thats good to know! I'll remove this format from the MR soon. |
originally only needed for gitea, to not match warnings as info because of the I
for matching the startup lines, for formati recognition
env_logger_log format is already compatible with it
This MR adds definitions for the following log formats: