1

my use case is to just use spdlog as my serialization library. For example. I would like to output json data, but the timestamp goes together with the json make it an invalid json syntax. Of course I could remove the time stamp programmatically later, but I am wondering whether if SPDLOG offers a way to skip the timestamp.

baltam
  • 53
  • 5
  • 2
    Maybe use their [custom formatting](https://github.com/gabime/spdlog/wiki/3.-Custom-formatting)? – Paul T. Aug 01 '20 at 23:31

1 Answers1

1

To remove the Timing and Logger name from output, add the following at the start of your code:

spdlog::set_pattern("%v");

For more details check out : custom formatting

nishi
  • 11
  • 1