mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
Add ZLIB linking and file logging support
- Add ZLIB find_package and linking for addon compression - Add file logging to logs/wowee.log
This commit is contained in:
parent
d970385815
commit
5ecca080d5
3 changed files with 33 additions and 10 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <mutex>
|
||||
#include <fstream>
|
||||
|
||||
namespace wowee {
|
||||
namespace core {
|
||||
|
|
@ -63,6 +64,9 @@ private:
|
|||
|
||||
LogLevel minLevel = LogLevel::DEBUG;
|
||||
std::mutex mutex;
|
||||
std::ofstream fileStream;
|
||||
bool fileReady = false;
|
||||
void ensureFile();
|
||||
};
|
||||
|
||||
// Convenience macros
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue