I'm using spdlog to log all messages. My log pattern is a JSON format. I'm escaping messages manually in all log calls. Is there any way exists to escape messages automatically in spdlog layer?
Sample of manually escaping:
spdlog::info(escape_message(data));
It should be automatically handled inside spdlog layer:
spdlog::info(data);