amoffat/sh — pull request #170 by mcclymont (2013-11-28 23:08:01+00:00)
Title: Added info logging call to log exactly what command will be started. Had...

I wanted the ability to log just the command string on the info level, without the extra debug info. Example:

(line 86 logging_enabled must be True)

import sh, logging
logging.basicConfig(level=logging.INFO)
sh.ls("-lah")
> INFO:command:starting command: /bin/ls -lah