You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Hello! Thanks for all the great work on zerolog, it's been a pleasure to use.
We are using zerolog in a CLI tool with two writers, one to the console at info level and another to a file at debug level, using the solution described here.
We would like to add some additional context fields to all messages for debugging (for example, process id to distinguish between separate invocations of the tool), but don't want to include those fields in the console log because they add clutter.
I see there are already PartsExclude and PartsOrder options in the console logger for excluding some default fields. Would you be open to a PR for new options, FieldsExclude and FieldsOrder, that do the same thing but for contextual fields?
If there is a better way to accomplish what we are after, that works too!
The text was updated successfully, but these errors were encountered:
Oh, I hoped that #411 also added FieldsOrder. It would be nice if we could customize which fields are prioritized and pulled to the front (with default being error). Then for HTTP requests I could pull path and method to the front.