if you want to ignore all the logfiles, no need for extensions
Merge pull request #17700 from ShunsukeAida/ignore_log_as_a_whole

why not gitignore /log as a whole?

[ci skip]