implemented file logging function in myrepo.shell.{_run,...}, and added corresponding test cases