How can I format the output of SPDLOG
macro calls to exclude [main.cpp:9]
parts?
#include <spdlog/spdlog.h>
int main()
{
SPDLOG_DEBUG("SMTH1");
SPDLOG_TRACE("SMTH2");
SPDLOG_INFO("SMTH3");
}
default output:
[2022-11-11 21:07:28.346] [temp] [debug] [main.cpp:9] SMTH1
[2022-11-11 21:07:28.348] [trace] [debug] [main.cpp:10] SMTH2
[2022-11-11 21:07:28.349] [info] [debug] [main.cpp:11] SMTH3
desired output:
[2022-11-11 21:07:28.346] [temp] [debug] SMTH1
[2022-11-11 21:07:28.348] [trace] [debug] SMTH2
[2022-11-11 21:07:28.349] [info] [debug] SMTH3