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

allow only structured log output #78

Closed
dezren39 opened this issue Oct 20, 2023 · 2 comments · Fixed by #82
Closed

allow only structured log output #78

dezren39 opened this issue Oct 20, 2023 · 2 comments · Fixed by #82

Comments

@dezren39
Copy link
Contributor

dezren39 commented Oct 20, 2023

hi, i'd like to be able to input something like

log.Info("", "variable", variable)

and get

variable=value

not

 variable=value

I think this would be a good special-case.

@dezren39
Copy link
Contributor Author

i can maybe find time for a pr if that special-case is something you're amenable to:
if the message is "" or null don't put a space separator between it and the structured log output

@aymanbagabas
Copy link
Member

i can maybe find time for a pr if that special-case is something you're amenable to: if the message is "" or null don't put a space separator between it and the structured log output

Thanks for pointing this out. A PR would be nice to fix this :)

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

Successfully merging a pull request may close this issue.

2 participants