| 44 | |
| 45 | template<typename Mutex> |
| 46 | void lazy_file_sink<Mutex>::flush_() |
| 47 | { |
| 48 | if (m_Handle) |
| 49 | { |
| 50 | if (!FlushFileBuffers(m_Handle.get())) |
| 51 | { |
| 52 | LastErrorHandle(spdlog::level::trace, L"Failed to flush log file."); |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | template<typename Mutex> |
| 58 | void lazy_file_sink<Mutex>::open() |