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

Structs as embedded json (feature request) #63

Closed
FarhadF opened this issue May 13, 2018 · 2 comments
Closed

Structs as embedded json (feature request) #63

FarhadF opened this issue May 13, 2018 · 2 comments

Comments

@FarhadF
Copy link

FarhadF commented May 13, 2018

I had a few use cases that I needed to log a struct as embedded json under a single key. I had to marshal the json and use RawJson type. It would be great if we would have a struct type.

@toravir
Copy link
Contributor

toravir commented May 13, 2018

How will this be different from Interface() ?
https://godoc.org/github.com/rs/zerolog#Event.Interface

@FarhadF
Copy link
Author

FarhadF commented May 13, 2018

It's not , my bad.

@FarhadF FarhadF closed this as completed May 13, 2018
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