有时,源字符串包含多行。从日志结果的第二行开始,我没有找到前缀。我不想把源码串拆成一行,你有什么想法吗?
int main()
{
BOOST_LOG_TRIVIAL(info) << "hello\nworld";
return 0;
}输出:
[2017-12-05 09:49:34.957813] [0x000028d4] [info] hello
world我想要以下输出:
[2017-12-05 10:01:35.033017] [0x00000af8] [info] hello
[2017-12-05 10:01:35.033017] [0x00000af8] [info] worldhttps://stackoverflow.com/questions/47573719
复制相似问题