To support your recommendation and redress the strawman the article postulates, the post's author could have replaced:
find . -name '*.log' | xargs rm
With: find . -name '*.log' -print0 | xargs -0 rm