24 template<
typename Mutex>
58 template<
typename Factory = default_factory>
61 return Factory::template create<sinks::basic_file_sink_mt>(logger_name,
filename, truncate);
64 template<
typename Factory = default_factory>
67 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 msg(const char *fmt,...)
void open(const filename_t &fname, bool truncate=false)
std::unique_ptr< spdlog::formatter > formatter_
void sink_it_(const details::log_msg &msg) override
void write(const fmt::memory_buffer &buf)
std::shared_ptr< logger > basic_logger_st(const std::string &logger_name, const filename_t &filename, bool truncate=false)
details::file_helper file_helper_
basic_file_sink(const filename_t &filename, bool truncate=false)