-
Notifications
You must be signed in to change notification settings - Fork 5
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
Defaults parameter is ignored #24
Comments
Hi @bharel, I'm not opposed to giving the Keep in mind that we already have the |
Exactly the same purpose that it has in the standard library - provide a default value for optional fields. Atm if a field doesn't exist it is returned as null. Static fields are not doing the same thing - they always exist and override the other values. |
Okay I think I understand what you're getting at. Essentially from the interactions of parsing required fields, renaming fields, and the actual fields on a log message it's possible that a field becomes Which means what I think you're proposing is that we use the In which case I'd be happy to accept a patch :) In case you haven't seen it you can find the contributing guidelines here |
closes #24 Uses `defaults` argument to prepopulate fields on records. ### Test Plan Unit tests --------- Co-authored-by: Nicholas Hairs <info@nicholashairs.com>
The defaults parameter that Logging.Formatter takes is ignored. We can make it work 😄
I can submit a patch :-)
The text was updated successfully, but these errors were encountered: