Instead of using the log section of the rule I could easily have put it as log in the params section. The only difference is the additional params. of {params.log}. In fact, by putting it in params I have more control as I do not need the log to have all the wildcards. For example, I could have multiple processes appending to the same log with >>.
Why is the log section useful, besides possibly making the code look cleaner?
From the docs:
If you use
paramsfor logging, then you cannot use log file as input for other rules. Having said that, I never got into the habit of using the log directive myself.