{"action":"created","issue":{"url":"https://api.github.com/repos/mgutz/logxi/issues/5","labels_url":"https://api.github.com/repos/mgutz/logxi/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mgutz/logxi/issues/5/comments","events_url":"https://api.github.com/repos/mgutz/logxi/issues/5/events","html_url":"https://github.com/mgutz/logxi/issues/5","id":67698850,"number":5,"title":"Safe concurrent logging","user":{"login":"oblitum","id":1269815,"avatar_url":"https://avatars.githubusercontent.com/u/1269815?v=3","gravatar_id":"","url":"https://api.github.com/users/oblitum","html_url":"https://github.com/oblitum","followers_url":"https://api.github.com/users/oblitum/followers","following_url":"https://api.github.com/users/oblitum/following{/other_user}","gists_url":"https://api.github.com/users/oblitum/gists{/gist_id}","starred_url":"https://api.github.com/users/oblitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblitum/subscriptions","organizations_url":"https://api.github.com/users/oblitum/orgs","repos_url":"https://api.github.com/users/oblitum/repos","events_url":"https://api.github.com/users/oblitum/events{/privacy}","received_events_url":"https://api.github.com/users/oblitum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T22:51:15Z","updated_at":"2015-04-10T22:52:56Z","closed_at":null,"body":"As far as I was able to check the internals of the lib, there's no guarding mechanism when writting to stdout.\r\n\r\nIf this is correct, then the library is not safe to use with concurrent code:\r\n\r\n- http://stackoverflow.com/a/14694666/1000282\r\n\r\nThe standard logging library does use locking mechanisms to prevent this."},"comment":{"url":"https://api.github.com/repos/mgutz/logxi/issues/comments/91711677","html_url":"https://github.com/mgutz/logxi/issues/5#issuecomment-91711677","issue_url":"https://api.github.com/repos/mgutz/logxi/issues/5","id":91711677,"user":{"login":"oblitum","id":1269815,"avatar_url":"https://avatars.githubusercontent.com/u/1269815?v=3","gravatar_id":"","url":"https://api.github.com/users/oblitum","html_url":"https://github.com/oblitum","followers_url":"https://api.github.com/users/oblitum/followers","following_url":"https://api.github.com/users/oblitum/following{/other_user}","gists_url":"https://api.github.com/users/oblitum/gists{/gist_id}","starred_url":"https://api.github.com/users/oblitum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblitum/subscriptions","organizations_url":"https://api.github.com/users/oblitum/orgs","repos_url":"https://api.github.com/users/oblitum/repos","events_url":"https://api.github.com/users/oblitum/events{/privacy}","received_events_url":"https://api.github.com/users/oblitum/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T22:52:56Z","updated_at":"2015-04-10T22:52:56Z","body":"- http://stackoverflow.com/a/14694630/1000282"}}