I\'m trying to find out a way in python to redirect the script execution log to a file as well as stdout in a pythonic way. Is there any easy way of achieving t
stdout
You should use the logging library, which has this capability built in. You simply add handlers to a logger to determine where to send the output.
logging