abumq / easyloggingpp

C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
MIT License
3.75k stars 918 forks source link

Redirect stdout and stderr to log file? #848

Open guilletrejo opened 8 months ago

guilletrejo commented 8 months ago

I know there is an option to redirect the logs to the Standard Output, but I don't see the reverse case. There are times when you use an API of another library that does not use easylogging, and instead writes its logs to stdout and stderr.

I would like to be able to redirect those logs to the log file of my application to have everything in one place. Is this possible already? Or is it something to implement?

Thanks!