24 template<
typename Mutex>
30 file_helper_.
open(filename, truncate);
43 file_helper_.
write(formatted);
63 template<
typename Factory = default_factory>
66 return Factory::template create<sinks::basic_file_sink_mt>(logger_name,
filename, truncate);
69 template<
typename Factory = default_factory>
72 return Factory::template create<sinks::basic_file_sink_st>(logger_name,
filename, truncate);
std::shared_ptr< logger > basic_logger_mt(const std::string &logger_name, const filename_t &filename, bool truncate=false)
void open(const filename_t &fname, bool truncate=false)
std::unique_ptr< spdlog::formatter > formatter_
void sink_it_(const details::log_msg &msg) override
const filename_t & filename() const
void write(const fmt::memory_buffer &buf)
const filename_t & filename() const
std::shared_ptr< logger > basic_logger_st(const std::string &logger_name, const filename_t &filename, bool truncate=false)
basic_file_sink(const filename_t &filename, bool truncate=false)