ignore all logfiles but keep the log directory. #17700 [ci skip]

We generate a `.keep` file inside the log directory to make
sure the directory itself is under version control. let's keep
it that way.

/cc @matthewd