|
|
@ -308,9 +308,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
void custom_flags_example()
|
|
|
|
void custom_flags_example()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
auto formatter = std::make_unique<spdlog::pattern_formatter>();
|
|
|
|
using spdlog::details::make_unique; // for pre c++14
|
|
|
|
|
|
|
|
auto formatter = make_unique<spdlog::pattern_formatter>();
|
|
|
|
|
|
|
|
formatter->add_flag<my_formatter_flag>('*').set_pattern("[%n] [%*] [%^%l%$] %v");
|
|
|
|
formatter->add_flag<my_formatter_flag>('*').set_pattern("[%n] [%*] [%^%l%$] %v");
|
|
|
|
spdlog::set_formatter(std::move(formatter));
|
|
|
|
spdlog::set_formatter(std::move(formatter));
|
|
|
|
}
|
|
|
|
}
|
|
|
|