Function rotating_logger_st

Synopsis

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

template <typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > rotating_logger_st(const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open=false)

Description

No description yet.

Source

Lines 68-73 in include/spdlog/sinks/rotating_file_sink.h.

template<typename Factory = spdlog::synchronous_factory>
inline std::shared_ptr<logger> rotating_logger_st(
    const std::string &logger_name, const filename_t &filename, size_t max_file_size, size_t max_files, bool rotate_on_open = false)
{
    return Factory::template create<sinks::rotating_file_sink_st>(logger_name, filename, max_file_size, max_files, rotate_on_open);
}





Add Discussion

Log in to comment