emilk / loguru

A lightweight C++ logging library
The Unlicense
1.79k stars 260 forks source link

Request: support for OutputDebugString on windows #107

Closed ruurdadema closed 5 years ago

ruurdadema commented 5 years ago

When using oguru in a gui app on windows there is no logging output as the stderr stream is not directed to the output window. In this case we have to use OutputDebugString to get the logging directed to the output window.

Ever thought of implementing this in loguru?

emilk commented 5 years ago

Just use a callback for it! It is in the docs: https://emilk.github.io/loguru/index.html#callbacks/loggingcallbacks