Someting like?
find "$path" -depth 2 -type d -mtime +"$days" -exec sh -c 'for dir; do echo "$(stat -c %Y "$dir") $dir" >> deletion_log.txt; rm -rf "$dir"; done' sh {} +