quill icon indicating copy to clipboard operation
quill copied to clipboard

JSON logging feature request

Open diehard2 opened this issue 2 years ago • 0 comments

I'm looking to write json logs to a logging platform, and this looks really promising. I've figured out how to create the custom handler (I think), but right now I have to generate the json on the hot path.

The biggest issue I'm having is the reliance on fmt for every entrypoint into the logger. Ideally I would like to do

std::map<std::string, std::string> mymap{{"boo", "berry"}}; LOG_CRITICAL(worker_logger, my_json_formatter(), {"foo", "bar"}, mymap, etc);

where I can provide the formatter that gets called on the background thread. Any help would be very appreciated.

diehard2 avatar Jan 05 '24 00:01 diehard2