I have a graphical application. When I open the .exe it should not show a console. When I run it from the console I want console output.
At first, I always got a console window in addition to the application window. I found this annoying, so I set #![windows_subsystem = "windows"]
. Now the console window is gone when I start the application, but also I don't get any logs when running it from console.
How can I get both?