I have the below, along with several f.write
commands in my python, but I can't figure out how to get it to print/catch errors to the same file.
f=open("C:/path/to/file/log.text","a+")
Also, how would I do this for powershell? I tried the below, but it's not catching errors?
"Foo Bar Foo Bar" | Add-Content 'C:/path/to/file/log.text'
Thanks.