logging not writing to file when called from function in Pyscripter

后端 未结 2 1814
花落未央
花落未央 2021-01-22 08:53

Currently if I run the following code from the python command line it writes to the file specified by filename as expected.

import logging
def test         


        
相关标签:
2条回答
  • 2021-01-22 09:01

    Pyscripter has an 'External Run' option ( Run > External Run (Alt + F9)), choosing this made the logging work.

    0 讨论(0)
  • 2021-01-22 09:19

    Switch the Python Engine to Internal. Go to run-->Pyhton Engine-->Internal

    0 讨论(0)
提交回复
热议问题