{"action":"closed","number":249,"pull_request":{"url":"https://api.github.com/repos/choderalab/yank/pulls/249","id":37516205,"html_url":"https://github.com/choderalab/yank/pull/249","diff_url":"https://github.com/choderalab/yank/pull/249.diff","patch_url":"https://github.com/choderalab/yank/pull/249.patch","issue_url":"https://api.github.com/repos/choderalab/yank/issues/249","number":249,"state":"closed","locked":false,"title":"[WIP] Use logging to control verbosity","user":{"login":"andrrizzi","id":1682142,"avatar_url":"https://avatars.githubusercontent.com/u/1682142?v=3","gravatar_id":"","url":"https://api.github.com/users/andrrizzi","html_url":"https://github.com/andrrizzi","followers_url":"https://api.github.com/users/andrrizzi/followers","following_url":"https://api.github.com/users/andrrizzi/following{/other_user}","gists_url":"https://api.github.com/users/andrrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/andrrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrrizzi/subscriptions","organizations_url":"https://api.github.com/users/andrrizzi/orgs","repos_url":"https://api.github.com/users/andrrizzi/repos","events_url":"https://api.github.com/users/andrrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/andrrizzi/received_events","type":"User","site_admin":false},"body":"#3 \r\n\r\nI added a function in yank.utils that can be used to easily configure the root logger. This function is called in the different dispatch() functions in yank.commands to make the logging command-based. Commands \"run\" and \"prepare\" save the log files \"run.log\" and \"prepare.log\" in the store folder, the other commands don't save any file.\r\n\r\nI'm not sure how to handle the mpi case so this doesn't completely fix the issue. Right now, when the \"--mpi\" argument is used the logging level is set to logging.INFO and the file is not saved.\r\n\r\nI also plan to substitute all the print() functions (at least the ones called during the commands run and prepare) with logger.info() calls. Otherwise those won't be included in the log file.","created_at":"2015-06-11T22:36:50Z","updated_at":"2015-06-14T01:50:30Z","closed_at":"2015-06-14T01:50:30Z","merged_at":"2015-06-14T01:50:30Z","merge_commit_sha":"0a131f5e30e195b5974513b811079a95d4319bc4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/choderalab/yank/pulls/249/commits","review_comments_url":"https://api.github.com/repos/choderalab/yank/pulls/249/comments","review_comment_url":"https://api.github.com/repos/choderalab/yank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/choderalab/yank/issues/249/comments","statuses_url":"https://api.github.com/repos/choderalab/yank/statuses/14b6f499f4362988219e5a48020b395e9aa4a433","head":{"label":"andrrizzi:master","ref":"master","sha":"14b6f499f4362988219e5a48020b395e9aa4a433","user":{"login":"andrrizzi","id":1682142,"avatar_url":"https://avatars.githubusercontent.com/u/1682142?v=3","gravatar_id":"","url":"https://api.github.com/users/andrrizzi","html_url":"https://github.com/andrrizzi","followers_url":"https://api.github.com/users/andrrizzi/followers","following_url":"https://api.github.com/users/andrrizzi/following{/other_user}","gists_url":"https://api.github.com/users/andrrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/andrrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrrizzi/subscriptions","organizations_url":"https://api.github.com/users/andrrizzi/orgs","repos_url":"https://api.github.com/users/andrrizzi/repos","events_url":"https://api.github.com/users/andrrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/andrrizzi/received_events","type":"User","site_admin":false},"repo":{"id":37076491,"name":"yank","full_name":"andrrizzi/yank","owner":{"login":"andrrizzi","id":1682142,"avatar_url":"https://avatars.githubusercontent.com/u/1682142?v=3","gravatar_id":"","url":"https://api.github.com/users/andrrizzi","html_url":"https://github.com/andrrizzi","followers_url":"https://api.github.com/users/andrrizzi/followers","following_url":"https://api.github.com/users/andrrizzi/following{/other_user}","gists_url":"https://api.github.com/users/andrrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/andrrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrrizzi/subscriptions","organizations_url":"https://api.github.com/users/andrrizzi/orgs","repos_url":"https://api.github.com/users/andrrizzi/repos","events_url":"https://api.github.com/users/andrrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/andrrizzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrrizzi/yank","description":"GPU-accelerated calculation of ligand binding affinities in implicit and explicit solvent using alchemical free energy methodologies","fork":true,"url":"https://api.github.com/repos/andrrizzi/yank","forks_url":"https://api.github.com/repos/andrrizzi/yank/forks","keys_url":"https://api.github.com/repos/andrrizzi/yank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrrizzi/yank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrrizzi/yank/teams","hooks_url":"https://api.github.com/repos/andrrizzi/yank/hooks","issue_events_url":"https://api.github.com/repos/andrrizzi/yank/issues/events{/number}","events_url":"https://api.github.com/repos/andrrizzi/yank/events","assignees_url":"https://api.github.com/repos/andrrizzi/yank/assignees{/user}","branches_url":"https://api.github.com/repos/andrrizzi/yank/branches{/branch}","tags_url":"https://api.github.com/repos/andrrizzi/yank/tags","blobs_url":"https://api.github.com/repos/andrrizzi/yank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrrizzi/yank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrrizzi/yank/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrrizzi/yank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrrizzi/yank/statuses/{sha}","languages_url":"https://api.github.com/repos/andrrizzi/yank/languages","stargazers_url":"https://api.github.com/repos/andrrizzi/yank/stargazers","contributors_url":"https://api.github.com/repos/andrrizzi/yank/contributors","subscribers_url":"https://api.github.com/repos/andrrizzi/yank/subscribers","subscription_url":"https://api.github.com/repos/andrrizzi/yank/subscription","commits_url":"https://api.github.com/repos/andrrizzi/yank/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrrizzi/yank/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrrizzi/yank/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrrizzi/yank/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrrizzi/yank/contents/{+path}","compare_url":"https://api.github.com/repos/andrrizzi/yank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrrizzi/yank/merges","archive_url":"https://api.github.com/repos/andrrizzi/yank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrrizzi/yank/downloads","issues_url":"https://api.github.com/repos/andrrizzi/yank/issues{/number}","pulls_url":"https://api.github.com/repos/andrrizzi/yank/pulls{/number}","milestones_url":"https://api.github.com/repos/andrrizzi/yank/milestones{/number}","notifications_url":"https://api.github.com/repos/andrrizzi/yank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrrizzi/yank/labels{/name}","releases_url":"https://api.github.com/repos/andrrizzi/yank/releases{/id}","created_at":"2015-06-08T15:47:28Z","updated_at":"2015-06-08T15:47:33Z","pushed_at":"2015-06-14T00:51:31Z","git_url":"git://github.com/andrrizzi/yank.git","ssh_url":"git@github.com:andrrizzi/yank.git","clone_url":"https://github.com/andrrizzi/yank.git","svn_url":"https://github.com/andrrizzi/yank","homepage":"","size":14458,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"choderalab:master","ref":"master","sha":"b5326fd6bf2aa15e5c73f27ce5f134f25ae4136c","user":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"repo":{"id":13779937,"name":"yank","full_name":"choderalab/yank","owner":{"login":"choderalab","id":4217481,"avatar_url":"https://avatars.githubusercontent.com/u/4217481?v=3","gravatar_id":"","url":"https://api.github.com/users/choderalab","html_url":"https://github.com/choderalab","followers_url":"https://api.github.com/users/choderalab/followers","following_url":"https://api.github.com/users/choderalab/following{/other_user}","gists_url":"https://api.github.com/users/choderalab/gists{/gist_id}","starred_url":"https://api.github.com/users/choderalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choderalab/subscriptions","organizations_url":"https://api.github.com/users/choderalab/orgs","repos_url":"https://api.github.com/users/choderalab/repos","events_url":"https://api.github.com/users/choderalab/events{/privacy}","received_events_url":"https://api.github.com/users/choderalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/choderalab/yank","description":"GPU-accelerated calculation of ligand binding affinities in implicit and explicit solvent using alchemical free energy methodologies","fork":false,"url":"https://api.github.com/repos/choderalab/yank","forks_url":"https://api.github.com/repos/choderalab/yank/forks","keys_url":"https://api.github.com/repos/choderalab/yank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choderalab/yank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choderalab/yank/teams","hooks_url":"https://api.github.com/repos/choderalab/yank/hooks","issue_events_url":"https://api.github.com/repos/choderalab/yank/issues/events{/number}","events_url":"https://api.github.com/repos/choderalab/yank/events","assignees_url":"https://api.github.com/repos/choderalab/yank/assignees{/user}","branches_url":"https://api.github.com/repos/choderalab/yank/branches{/branch}","tags_url":"https://api.github.com/repos/choderalab/yank/tags","blobs_url":"https://api.github.com/repos/choderalab/yank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choderalab/yank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choderalab/yank/git/refs{/sha}","trees_url":"https://api.github.com/repos/choderalab/yank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choderalab/yank/statuses/{sha}","languages_url":"https://api.github.com/repos/choderalab/yank/languages","stargazers_url":"https://api.github.com/repos/choderalab/yank/stargazers","contributors_url":"https://api.github.com/repos/choderalab/yank/contributors","subscribers_url":"https://api.github.com/repos/choderalab/yank/subscribers","subscription_url":"https://api.github.com/repos/choderalab/yank/subscription","commits_url":"https://api.github.com/repos/choderalab/yank/commits{/sha}","git_commits_url":"https://api.github.com/repos/choderalab/yank/git/commits{/sha}","comments_url":"https://api.github.com/repos/choderalab/yank/comments{/number}","issue_comment_url":"https://api.github.com/repos/choderalab/yank/issues/comments{/number}","contents_url":"https://api.github.com/repos/choderalab/yank/contents/{+path}","compare_url":"https://api.github.com/repos/choderalab/yank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choderalab/yank/merges","archive_url":"https://api.github.com/repos/choderalab/yank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choderalab/yank/downloads","issues_url":"https://api.github.com/repos/choderalab/yank/issues{/number}","pulls_url":"https://api.github.com/repos/choderalab/yank/pulls{/number}","milestones_url":"https://api.github.com/repos/choderalab/yank/milestones{/number}","notifications_url":"https://api.github.com/repos/choderalab/yank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choderalab/yank/labels{/name}","releases_url":"https://api.github.com/repos/choderalab/yank/releases{/id}","created_at":"2013-10-22T17:01:36Z","updated_at":"2015-06-08T20:11:17Z","pushed_at":"2015-06-14T01:50:30Z","git_url":"git://github.com/choderalab/yank.git","ssh_url":"git@github.com:choderalab/yank.git","clone_url":"https://github.com/choderalab/yank.git","svn_url":"https://github.com/choderalab/yank","homepage":"","size":27863,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":99,"forks":13,"open_issues":99,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/choderalab/yank/pulls/249"},"html":{"href":"https://github.com/choderalab/yank/pull/249"},"issue":{"href":"https://api.github.com/repos/choderalab/yank/issues/249"},"comments":{"href":"https://api.github.com/repos/choderalab/yank/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/choderalab/yank/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/choderalab/yank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/choderalab/yank/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/choderalab/yank/statuses/14b6f499f4362988219e5a48020b395e9aa4a433"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kyleabeauchamp","id":1900459,"avatar_url":"https://avatars.githubusercontent.com/u/1900459?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleabeauchamp","html_url":"https://github.com/kyleabeauchamp","followers_url":"https://api.github.com/users/kyleabeauchamp/followers","following_url":"https://api.github.com/users/kyleabeauchamp/following{/other_user}","gists_url":"https://api.github.com/users/kyleabeauchamp/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleabeauchamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleabeauchamp/subscriptions","organizations_url":"https://api.github.com/users/kyleabeauchamp/orgs","repos_url":"https://api.github.com/users/kyleabeauchamp/repos","events_url":"https://api.github.com/users/kyleabeauchamp/events{/privacy}","received_events_url":"https://api.github.com/users/kyleabeauchamp/received_events","type":"User","site_admin":false},"comments":7,"review_comments":0,"commits":13,"additions":370,"deletions":265,"changed_files":14}}