Made changes to add a logging function and added an empty file to logs directory to ensure creation