feature:
1.Add spdlog to save log file 2.Add program options to connect specific broadcast code and decide whether to save log file 3.Add comments in readme for windows 64-bit project compilation
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "apr_general.h"
|
||||
#include "command_handler/command_handler.h"
|
||||
#include "data_handler/data_handler.h"
|
||||
#include "base/logging.h"
|
||||
#include "device_manager.h"
|
||||
using namespace livox;
|
||||
IOThread *g_thread = NULL;
|
||||
@@ -41,6 +42,8 @@ void GetLivoxSdkVersion(LivoxSdkVersion *version) {
|
||||
bool Init() {
|
||||
bool result = false;
|
||||
do {
|
||||
InitLogger();
|
||||
|
||||
if (apr_initialize() != APR_SUCCESS) {
|
||||
result = false;
|
||||
break;
|
||||
@@ -67,6 +70,7 @@ bool Init() {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
|
||||
result = true;
|
||||
} while (0);
|
||||
|
||||
@@ -94,6 +98,7 @@ void Uninit() {
|
||||
g_thread = NULL;
|
||||
}
|
||||
|
||||
UninitLogger();
|
||||
apr_terminate();
|
||||
}
|
||||
|
||||
@@ -103,3 +108,7 @@ bool Start() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void SaveLoggerFile() {
|
||||
is_save_log_file = true;
|
||||
}
|
||||
Reference in New Issue
Block a user