Find all files with the extension ".log" in the entire file system and for each of them, execute the command "sed -i '/^$/d'" which deletes all empty lines.
find / -name '*.log' | xargs -n1 sed -i '/^$/d'