diff options
author | Legonzaur <34353603+Legonzaur@users.noreply.github.com> | 2022-02-16 00:06:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 20:06:31 -0300 |
commit | 0faa9cfb3a9015ca723f012ca84609f602c7c03c (patch) | |
tree | 42c3f32924131346031000356743273b6f303bf1 /NorthstarDedicatedTest/logging.cpp | |
parent | fb363f16204478758a5ff62290c2bae159d7507c (diff) | |
download | NorthstarLauncher-0faa9cfb3a9015ca723f012ca84609f602c7c03c.tar.gz NorthstarLauncher-0faa9cfb3a9015ca723f012ca84609f602c7c03c.zip |
Compress previous logs and dump files on launch (#73)
* added zlib + gzip
Co-authored-by: Nathan TIEN YOU <nathan.tienyou@viacesi.fr>
Diffstat (limited to 'NorthstarDedicatedTest/logging.cpp')
-rw-r--r-- | NorthstarDedicatedTest/logging.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp index ec46bedc..abedc035 100644 --- a/NorthstarDedicatedTest/logging.cpp +++ b/NorthstarDedicatedTest/logging.cpp @@ -10,10 +10,12 @@ #include <Psapi.h> #include <minidumpapiset.h> #include "configurables.h" +#include "logCompression.h" // This needs to be called after hooks are loaded so we can access the command line args void CreateLogFiles() { + CompressLogFiles(); if (strstr(GetCommandLineA(), "-disablelogs")) { spdlog::default_logger()->set_level(spdlog::level::off); |