spdlog can log threadid by doing:
spdlog
threadid
spdlog::set_pattern("*** [%H:%M:%S %z] [thread %t] %v ***");
But how can I log the pid(process id)?
pid(process id)
This is already supported in latest versions, using the %P flag.