Function set_pattern

Synopsis

#include <include/spdlog/logger.h>

void set_pattern(std::string pattern, pattern_time_type time_type=pattern_time_type::local)

Description

No description yet.

Source

Lines 101-105 in include/spdlog/logger-inl.h. Line 296 in include/spdlog/logger.h.

SPDLOG_INLINE void logger::set_pattern(std::string pattern, pattern_time_type time_type)
{
    auto new_formatter = details::make_unique<pattern_formatter>(std::move(pattern), time_type);
    set_formatter(std::move(new_formatter));
}





Add Discussion

Log in to comment