[Tutor] How to change default path output of 'logging'?

Juan Christian juan0christian at gmail.com
Mon Dec 22 13:53:33 CET 2014


I have a 'logging' on my code using:

import logging
< ... >
logging.basicConfig(filename="bumpr.log", level=logging.INFO)
< ... >

The thing is that the default location of this output when running via
Windows Task Scheduler is 'C:/Windows/System32'.

Is there a way to change the location of the output of this module? I want
it to output where my 'main.py' is.


More information about the Tutor mailing list