{"action":"created","issue":{"url":"https://api.github.com/repos/Sirupsen/logrus/issues/414","repository_url":"https://api.github.com/repos/Sirupsen/logrus","labels_url":"https://api.github.com/repos/Sirupsen/logrus/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/Sirupsen/logrus/issues/414/comments","events_url":"https://api.github.com/repos/Sirupsen/logrus/issues/414/events","html_url":"https://github.com/Sirupsen/logrus/issues/414","id":177954589,"number":414,"title":"no way to write log to a file!","user":{"login":"HomeGamer19880330","id":2831986,"avatar_url":"https://avatars.githubusercontent.com/u/2831986?v=3","gravatar_id":"","url":"https://api.github.com/users/HomeGamer19880330","html_url":"https://github.com/HomeGamer19880330","followers_url":"https://api.github.com/users/HomeGamer19880330/followers","following_url":"https://api.github.com/users/HomeGamer19880330/following{/other_user}","gists_url":"https://api.github.com/users/HomeGamer19880330/gists{/gist_id}","starred_url":"https://api.github.com/users/HomeGamer19880330/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HomeGamer19880330/subscriptions","organizations_url":"https://api.github.com/users/HomeGamer19880330/orgs","repos_url":"https://api.github.com/users/HomeGamer19880330/repos","events_url":"https://api.github.com/users/HomeGamer19880330/events{/privacy}","received_events_url":"https://api.github.com/users/HomeGamer19880330/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-20T03:28:03Z","updated_at":"2016-11-23T04:31:29Z","closed_at":null,"body":"logger := logrus.New()\nfp, err = os.OpenFile(logFilePath, os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)\nlogger.Out = bufio.NewWriterSize(fp, maxFileSize)\n\ncode like this,I run the program happy\n\nbut!\nI can not write log to file!why it is?\n\nhow could it possilbe???\n"},"comment":{"url":"https://api.github.com/repos/Sirupsen/logrus/issues/comments/262432861","html_url":"https://github.com/Sirupsen/logrus/issues/414#issuecomment-262432861","issue_url":"https://api.github.com/repos/Sirupsen/logrus/issues/414","id":262432861,"user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T04:31:29Z","updated_at":"2016-11-23T04:31:29Z","body":"`Logger.Out` should do the trick but I haven't confirmed it. Did you call flush on the buffered writer?\r\n\r\nLooks like this is a duplicate of #410."}}
{"actor":{"display_login":"stevvooe"}}