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

feat(log): support customization of log json marshal #18429

Merged
merged 13 commits into from
Nov 12, 2023
Prev Previous commit
Next Next commit
Update log/options.go
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
lilasxie and julienrbrt authored Nov 10, 2023
commit 0ef59d08e08862f477aa50d7980f89469c0bdd6e
2 changes: 1 addition & 1 deletion log/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Config struct {
Color bool
StackTrace bool
TimeFormat string
JSONMarshal func(v interface{}) ([]byte, error)
JSONMarshal func(v any) ([]byte, error)
}

type Option func(*Config)
Expand Down