How to write to the console?

I am starting a Unity compiled exe file from the command prompt in windows, and I want to see some output in that window to give a status about what the program is doing. But how?

        Console.WriteLine("test1");
        Debug.Log("test2");
        Console.Out.WriteLine("Test3");

I have tried these, but nothing shows up in the console.

How to do this?

Apparently Unity cannot do this, but I found a working hack here:

https://garry.tv/unity-batchmode-console

Hi @TOES have you check that debug message aren’t accidentally turned off? in the console window on the top right had side there should be three button (one for messages, one for errors, one for warning), double check that these are all active.