I've used boost::log
successfully to log to stdout (using the TRIVIAL
macros) or to log to a file (basically following the steps in the tutorial).
How would we configure to log to a file and stdout simultaneously?
This is a common use case in our setup when we want to have both, a log file and also all the output that goes to the log on the console.
Any input appreciated!
You can register more than one sink. Each sink will receive and process log records as you emit them independently from others.
– Angelenaangeleno