Function basic_logger_st

Synopsis

#include <include/spdlog/sinks/basic_file_sink.h>

template <typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > basic_logger_st(const std::string &logger_name, const filename_t &filename, bool truncate=false)

Description

No description yet.

Mentioned in

Source

Lines 48-52 in include/spdlog/sinks/basic_file_sink.h.

template<typename Factory = spdlog::synchronous_factory>
inline std::shared_ptr<logger> basic_logger_st(const std::string &logger_name, const filename_t &filename, bool truncate = false)
{
    return Factory::template create<sinks::basic_file_sink_st>(logger_name, filename, truncate);
}





Add Discussion

Log in to comment