mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
Updated to use a multi-thread safe logger
This commit is contained in:
parent
50bb0664dd
commit
3bf6c3ecd0
@ -28,6 +28,8 @@
|
|||||||
#include "rascsi_version.h"
|
#include "rascsi_version.h"
|
||||||
#include "rasctl.h"
|
#include "rasctl.h"
|
||||||
#include "spdlog/spdlog.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
|
#endif // BAREMETAL
|
||||||
|
|
||||||
spdlog::set_level(spdlog::level::trace);
|
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);
|
LOGTRACE("Entering the function %s with %d arguments", __PRETTY_FUNCTION__, argc);
|
||||||
// Output the Banner
|
// Output the Banner
|
||||||
Banner(argc, argv);
|
Banner(argc, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user