Function hourly_logger_mt

Synopsis

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

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

Description

factory functions

Source

Lines 181-186 in include/spdlog/sinks/hourly_file_sink.h.

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





Add Discussion

Log in to comment