Updated to use a multi-thread safe logger

This commit is contained in:
Tony Kuker 2021-01-31 20:11:33 -06:00
parent 50bb0664dd
commit 3bf6c3ecd0

View File

@ -28,6 +28,8 @@
#include "rascsi_version.h"
#include "rasctl.h"
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include <spdlog/async.h>
//---------------------------------------------------------------------------
//
@ -1109,6 +1111,9 @@ int main(int argc, char* argv[])
#endif // BAREMETAL
spdlog::set_level(spdlog::level::trace);
// Create a thread-safe stdout logger to process the log messages
auto logger = spdlog::stdout_color_mt("rascsi stdout logger");
LOGTRACE("Entering the function %s with %d arguments", __PRETTY_FUNCTION__, argc);
// Output the Banner
Banner(argc, argv);