Some times, the source string contain multi lines. I found no prefix since second line in log result. I don't want to split the source string to single line, have any idea?
int main()
{
BOOST_LOG_TRIVIAL(info) << "hello\nworld";
return 0;
}
output:
[2017-12-05 09:49:34.957813] [0x000028d4] [info] hello
world
I want the following output:
[2017-12-05 10:01:35.033017] [0x00000af8] [info] hello
[2017-12-05 10:01:35.033017] [0x00000af8] [info] world