{"action":"created","issue":{"url":"https://api.github.com/repos/rs/xlog/issues/4","labels_url":"https://api.github.com/repos/rs/xlog/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/rs/xlog/issues/4/comments","events_url":"https://api.github.com/repos/rs/xlog/issues/4/events","html_url":"https://github.com/rs/xlog/issues/4","id":120153648,"number":4,"title":"Simple code does not output anything","user":{"login":"trong","id":466842,"avatar_url":"https://avatars.githubusercontent.com/u/466842?v=3","gravatar_id":"","url":"https://api.github.com/users/trong","html_url":"https://github.com/trong","followers_url":"https://api.github.com/users/trong/followers","following_url":"https://api.github.com/users/trong/following{/other_user}","gists_url":"https://api.github.com/users/trong/gists{/gist_id}","starred_url":"https://api.github.com/users/trong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trong/subscriptions","organizations_url":"https://api.github.com/users/trong/orgs","repos_url":"https://api.github.com/users/trong/repos","events_url":"https://api.github.com/users/trong/events{/privacy}","received_events_url":"https://api.github.com/users/trong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T11:53:54Z","updated_at":"2015-12-03T15:16:45Z","closed_at":null,"body":"The code below does not output anything\r\n```go\r\npackage main \r\n\r\nimport (\r\n\t\"github.com/rs/xlog\"\r\n)\r\n\r\nfunc main() {\r\n\tl := xlog.New(xlog.Config{})\r\n\tl.Infof(\"%s\", \"INFO\")\r\n}\r\n```\r\nCould you say - whats is wrong?"},"comment":{"url":"https://api.github.com/repos/rs/xlog/issues/comments/161671766","html_url":"https://github.com/rs/xlog/issues/4#issuecomment-161671766","issue_url":"https://api.github.com/repos/rs/xlog/issues/4","id":161671766,"user":{"login":"rs","id":68232,"avatar_url":"https://avatars.githubusercontent.com/u/68232?v=3","gravatar_id":"","url":"https://api.github.com/users/rs","html_url":"https://github.com/rs","followers_url":"https://api.github.com/users/rs/followers","following_url":"https://api.github.com/users/rs/following{/other_user}","gists_url":"https://api.github.com/users/rs/gists{/gist_id}","starred_url":"https://api.github.com/users/rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs/subscriptions","organizations_url":"https://api.github.com/users/rs/orgs","repos_url":"https://api.github.com/users/rs/repos","events_url":"https://api.github.com/users/rs/events{/privacy}","received_events_url":"https://api.github.com/users/rs/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T15:16:45Z","updated_at":"2015-12-03T15:16:45Z","body":"By default the output is wrapped into a OutputChannel so there is a buffered channel between the logger and the output. It’s well suited for http handler so logging output I/O can never block your handlers.\r\n\r\nWhen used like that, your program will exit before the buffered channel is actually flushed and delivered to the output."}}