Add logging handler.
Pre-commit stashes unstaged changes on run.  Closes #30.