title: snakemake: how to implement log directive when using run directive?
body: <p>Snakemake allows creation of a log for each rule with <code>log</code> parameter that specifies the name of the log file. It is relatively straightforward to pipe results from <code>shell</code> output to this log, but I am not able to figure out a way of logging output of <code>run</code> output (i.e. python script).</p>
  
  <p>One workaround is to save the python code in a script and then run it from the shell, but I wonder if there is another way?</p>