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

documenting reserved words #107

Open
dezren39 opened this issue Feb 21, 2024 · 2 comments
Open

documenting reserved words #107

dezren39 opened this issue Feb 21, 2024 · 2 comments

Comments

@dezren39
Copy link
Contributor

dezren39 commented Feb 21, 2024

I just reviewed #61 and ended up with some questions.

I think this might be good to document a bit on the main readme docs. What happens when I use a reserved word in my log statements? prefix disappears weirdly, but lvl just shows up and doesn't change the lvl? I could maybe make a table but I don't know well enough I don't remember exactly how each of them is used.

I'm also curious why are there reserved words in the log line stuff? what does that help with, like these aren't for the logger options these are on each log line so I'm just confused how they work? do some of them get used?

@dezren39
Copy link
Contributor Author

i'm guessing they show up when using json or slog in general? it makes sense to reserve these words i just don't know what happens when i use them and it surprised me, so i figure maybe a readme update will help.

@aymanbagabas
Copy link
Member

Hi @dezren39, thank you for reporting this one. There are indeed some reserved words used to denote different kinds of values such as time, level, and msg. Feel free to send a PR

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

No branches or pull requests

2 participants