added spdlog

This commit is contained in:
2024-07-25 10:55:48 -05:00
parent 92fc163341
commit 5a928208fd
10 changed files with 51 additions and 154 deletions

View File

@ -41,26 +41,9 @@ private:
private:
event_level event_level_;
std::string log_directory_;
std::string log_path_;
private:
std::deque<std::shared_ptr<event>> event_queue_;
FILE *log_file_{nullptr};
std::mutex log_mutex_;
std::condition_variable log_notify_;
bool logging_active_{true};
std::unique_ptr<std::thread> logging_thread_;
private:
void check_log_roll(std::size_t count);
void close_log_file();
void logging_thread(bool drain);
void process_event(const event &event);
void reopen_log_file();
};
} // namespace repertory