Add a permission
Format and add permission to log
change file name to lowercase