Added file and line information to logger

This commit is contained in:
Bartek Kryza
2021-04-17 17:33:03 +02:00
parent 4e644b8641
commit dd5befa89b
2 changed files with 21 additions and 1 deletions

View File

@@ -169,8 +169,10 @@ int main(int argc, char *argv[])
if (returnCode != 0)
return returnCode;
if (debug_log)
if (debug_log) {
spdlog::default_logger_raw()->set_level(spdlog::level::debug);
spdlog::default_logger_raw()->set_pattern("[%l] %v");
}
return session.run();
}