{"action":"created","issue":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/683","repository_url":"https://api.github.com/repos/paramiko/paramiko","labels_url":"https://api.github.com/repos/paramiko/paramiko/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/paramiko/paramiko/issues/683/comments","events_url":"https://api.github.com/repos/paramiko/paramiko/issues/683/events","html_url":"https://github.com/paramiko/paramiko/issues/683","id":132118724,"number":683,"title":"log_to_file shall use filemode \"append\", not \"write\"","user":{"login":"vlcinsky","id":635911,"avatar_url":"https://avatars.githubusercontent.com/u/635911?v=3","gravatar_id":"","url":"https://api.github.com/users/vlcinsky","html_url":"https://github.com/vlcinsky","followers_url":"https://api.github.com/users/vlcinsky/followers","following_url":"https://api.github.com/users/vlcinsky/following{/other_user}","gists_url":"https://api.github.com/users/vlcinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vlcinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlcinsky/subscriptions","organizations_url":"https://api.github.com/users/vlcinsky/orgs","repos_url":"https://api.github.com/users/vlcinsky/repos","events_url":"https://api.github.com/users/vlcinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vlcinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-02-08T11:32:29Z","updated_at":"2017-02-23T04:08:53Z","closed_at":null,"body":"See [StackOverflow question](http://stackoverflow.com/questions/35268029/appending-the-log-file-using-logging)\n\nParamiko log files created by means of `paramiko.util.log_to_file(\"filename.log')` result always in overwriting the previous logs.\n\nThe reason is clear, the [`util.py` line 24](https://github.com/paramiko/paramiko/blob/master/paramiko/util.py#L24) is opening the file with \"w\" mode.\n\nConsider changing to \"a\".\n"},"comment":{"url":"https://api.github.com/repos/paramiko/paramiko/issues/comments/281889155","html_url":"https://github.com/paramiko/paramiko/issues/683#issuecomment-281889155","issue_url":"https://api.github.com/repos/paramiko/paramiko/issues/683","id":281889155,"user":{"login":"PurplePinkie","id":17714000,"avatar_url":"https://avatars.githubusercontent.com/u/17714000?v=3","gravatar_id":"","url":"https://api.github.com/users/PurplePinkie","html_url":"https://github.com/PurplePinkie","followers_url":"https://api.github.com/users/PurplePinkie/followers","following_url":"https://api.github.com/users/PurplePinkie/following{/other_user}","gists_url":"https://api.github.com/users/PurplePinkie/gists{/gist_id}","starred_url":"https://api.github.com/users/PurplePinkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PurplePinkie/subscriptions","organizations_url":"https://api.github.com/users/PurplePinkie/orgs","repos_url":"https://api.github.com/users/PurplePinkie/repos","events_url":"https://api.github.com/users/PurplePinkie/events{/privacy}","received_events_url":"https://api.github.com/users/PurplePinkie/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T04:08:53Z","updated_at":"2017-02-23T04:08:53Z","body":"+1"}}
{"actor":{"display_login":"PurplePinkie"}}