moved logging functionaity into the Pipeline class to enable simpler user interface from Snakefile.