address log accumulation issue and non-ascii files load on program init
This commit is contained in:
1 parent
46690d6975
commit
5e27111b21
12 files changed
+811
-153
No files matched your search
+4
-1
@@ -1,10 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
namespace anm2ed
|
||||
@@ -46,9 +47,11 @@ namespace anm2ed
|
||||
class Logger
|
||||
{
|
||||
std::filesystem::path logPath{};
|
||||
std::uintmax_t logSize{};
|
||||
std::mutex mutex{};
|
||||
std::thread stderrThread{};
|
||||
bool isStderrRedirecting{};
|
||||
bool isLogLimitReached{};
|
||||
int stderrPipeReadFd{-1};
|
||||
int stderrPipeWriteFd{-1};
|
||||
int stderrOriginalFd{-1};
|
||||
|
||||
Reference in new issue
Block a user