added spdlog
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user