diff options
author | Saturneric <[email protected]> | 2023-02-16 17:46:37 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-16 17:46:37 +0000 |
commit | d9142776de351c8a383ea85865293a2bd2add573 (patch) | |
tree | e94ce97e62e214a3114e0b0e140b5782dd576766 /src/main.cpp | |
parent | fix: solve build problem on windows platform (diff) | |
download | GpgFrontend-d9142776de351c8a383ea85865293a2bd2add573.tar.gz GpgFrontend-d9142776de351c8a383ea85865293a2bd2add573.zip |
fix: solve logging framework issues on windows
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 38c17d2a..98c02a0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -74,6 +74,12 @@ extern void before_exit(); extern void init_logging_system(); /** + * @brief initialize the logging system. + * + */ +extern void shutdown_logging_system(); + +/** * @brief init global PATH env * */ @@ -107,7 +113,10 @@ int main(int argc, char* argv[]) { init_logging_system(); // init the logging system for core - GpgFrontend::InitLoggingSystem(); + GpgFrontend::InitCoreLoggingSystem(); + + // init the logging system for ui + GpgFrontend::UI::InitUILoggingSystem(); // change path to search for related init_global_path_env(); @@ -165,6 +174,15 @@ int main(int argc, char* argv[]) { } while (return_from_event_loop_code == DEEP_RESTART_CODE || return_from_event_loop_code == CRASH_CODE); + + // shutdown the logging system for ui + GpgFrontend::UI::ShutdownUILoggingSystem(); + + // shutdown the logging system for core + GpgFrontend::ShutdownCoreLoggingSystem(); + + + // log for debug SPDLOG_INFO("GpgFrontend about to exit."); |