I am trying to create a log file while running a python script, I am really not sure where the fault can occur so I can't put try and except here.
Giving you an example if my code says:
print "hello"
it should save a file on given location with .log/.txt file which will write the error like:
File "<ipython-input-4-2a0eaa89f43f>", line 1
print "hello"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("hello")?
I tried to read the logging feature in python but I think that tells you how to write your own error message. Normally I write long python script to run, it run fine and when I put this in window scheduler and if some reason it fails, I don't understand why. So if there is a file getting genrated for these "python terminal error messages" as mentioned above, that will be pretty helpful. Tried to find everywhere and could not find something about this...