Pycharm "Save console output to file" not working

I see that no file is saved even though I specify a file pathname log.log in the logs tab (Run/Debug configurations of Pycharm)

1 answer

  • answered 2022-05-06 23:13 omsrisagar

    Turns out that the following two boxes should not be checked for this to work:

    • Emulate terminal in output console
    • Run with Python Console

    Uncheck the above two boxes and the logging should work fine. Also remember to specify the log filename instead of directory such as your_log_directory/log.log

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum