plog icon indicating copy to clipboard operation
plog copied to clipboard

Logging to file and console at the same time

Open hirenpatel1207 opened this issue 2 years ago • 1 comments

The logger works nicely for recording to a file. But is it possible to print the output (logs), on the console at the same time too?

hirenpatel1207 avatar Apr 04 '23 09:04 hirenpatel1207

For that you need to create several appenders: https://github.com/SergiusTheBest/plog/blob/d60df3a1efa99061f637c263fe4e467c273d8655/samples/MultiAppender/Main.cpp#L5-L25

SergiusTheBest avatar Apr 04 '23 14:04 SergiusTheBest