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.Dismiss alert
We just call format and that code runs internally by libfmt. I am not sure how easy it would be for the Sink to select formatter
One way i can think is the Sink could modify the format string before formatting, but then it would need to add the correct value inside ‘{}’ based on each type and it would need to have a mapping passed by the user for each type
Just to start with - I think its great that we now have per-sink pattern formatters in v9.0.0 https://github.com/odygrd/quill/blob/master/examples/sink_formatter_override.cpp !
But I was wondering if it would be possible to go one step further, and integrate mutli-formatting with this feature. https://github.com/odygrd/quill/blob/master/examples/user_defined_types_multi_format.cpp.
The idea would be that logging through sink1 could use the {} formatter, and logging through sink2 could always use the {:p} formatter for example.
The text was updated successfully, but these errors were encountered: