Currently if I run the following code from the python command line it writes to the file specified by filename as expected.
filename
import logging def test
Pyscripter has an 'External Run' option ( Run > External Run (Alt + F9)), choosing this made the logging work.
Switch the Python Engine to Internal. Go to run-->Pyhton Engine-->Internal