Code refactoring
Use environment variables for the log and upload paths