| 30 | |
| 31 | template<typename Mutex> |
| 32 | void lazy_file_sink<Mutex>::sink_it_(const spdlog::details::log_msg &msg) |
| 33 | { |
| 34 | open(); |
| 35 | |
| 36 | if (m_Handle) |
| 37 | { |
| 38 | spdlog::memory_buf_t formatted; |
| 39 | this->formatter_->format(msg, formatted); |
| 40 | |
| 41 | write(formatted); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | template<typename Mutex> |
| 46 | void lazy_file_sink<Mutex>::flush_() |