Skip to content
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

What is "v" for? #55

Closed
rurounijones opened this issue Feb 18, 2018 · 2 comments
Closed

What is "v" for? #55

rurounijones opened this issue Feb 18, 2018 · 2 comments
Labels

Comments

@rurounijones
Copy link

This is most likely a stupid question but I cannot figure out what the intended purpose of the "v" key is in the log output?

It is always 0 for me and looking through the code I see it is sometimes 0 or 1 in the tests.

Could you shed some light on what this key is for? 😄

@tilfin
Copy link
Owner

tilfin commented Feb 18, 2018

@rurounijones The reason why I made Ougai is that I firstly wanted a Ruby JSON logger compatible with node-bunyan. That makes aggregating Ruby and Node.js JSON logs possible and they could be analyzed at the same. I guess that Bunyan logs have v field as the version of log format. Bunyan also have good viewer cli but it does not works logs without v field.
If you want simplier JSON formatter, please make your suitable formatter.

@rurounijones
Copy link
Author

情報ありがとうございました 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants