我用{fmt}做了一个测试,非常容易更改背景色,但我无法用spdlog获得相同的结果
我可以用spdlog得到同样的结果,但这是一个奇怪的代码
fmt::print( bg( fmt::terminal_color::yellow ) | fg( fmt::terminal_color::black ), " {1:<{0}}n", 120, "message" );
spdlog::set_pattern( "%v" );
spdlog::info( "