{"action":"created","issue":{"url":"https://api.github.com/repos/namshi/winston-graylog2/issues/24","labels_url":"https://api.github.com/repos/namshi/winston-graylog2/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/namshi/winston-graylog2/issues/24/comments","events_url":"https://api.github.com/repos/namshi/winston-graylog2/issues/24/events","html_url":"https://github.com/namshi/winston-graylog2/issues/24","id":70168026,"number":24,"title":"prevents program from exiting","user":{"login":"slang800","id":1049204,"avatar_url":"https://avatars.githubusercontent.com/u/1049204?v=3","gravatar_id":"","url":"https://api.github.com/users/slang800","html_url":"https://github.com/slang800","followers_url":"https://api.github.com/users/slang800/followers","following_url":"https://api.github.com/users/slang800/following{/other_user}","gists_url":"https://api.github.com/users/slang800/gists{/gist_id}","starred_url":"https://api.github.com/users/slang800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slang800/subscriptions","organizations_url":"https://api.github.com/users/slang800/orgs","repos_url":"https://api.github.com/users/slang800/repos","events_url":"https://api.github.com/users/slang800/events{/privacy}","received_events_url":"https://api.github.com/users/slang800/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T16:02:20Z","updated_at":"2015-04-29T06:34:13Z","closed_at":null,"body":"Since this never calls `close` on the graylog2 UDP stream, this transport prevents the program from exiting when it's finished.\r\n\r\nHere's some code I'm using to test:\r\n\r\n```coffeescript\r\nwinston = require('winston')\r\nGraylog = require('winston-graylog2')\r\n\r\nlog = new(winston.Logger)(\r\n  transports: [\r\n    new (winston.transports.Console)(\r\n      handleExceptions: true\r\n    ),\r\n    new(Graylog)(\r\n      silent: false,\r\n      handleExceptions: true,\r\n      graylog:\r\n        servers: [{host: '104.236.18.71', port: 12201}],\r\n        bufferSize: 1400\r\n    )\r\n  ]\r\n)\r\n\r\nlog.info('test')\r\n```"},"comment":{"url":"https://api.github.com/repos/namshi/winston-graylog2/issues/comments/97322880","html_url":"https://github.com/namshi/winston-graylog2/issues/24#issuecomment-97322880","issue_url":"https://api.github.com/repos/namshi/winston-graylog2/issues/24","id":97322880,"user":{"login":"unlucio","id":778799,"avatar_url":"https://avatars.githubusercontent.com/u/778799?v=3","gravatar_id":"","url":"https://api.github.com/users/unlucio","html_url":"https://github.com/unlucio","followers_url":"https://api.github.com/users/unlucio/followers","following_url":"https://api.github.com/users/unlucio/following{/other_user}","gists_url":"https://api.github.com/users/unlucio/gists{/gist_id}","starred_url":"https://api.github.com/users/unlucio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlucio/subscriptions","organizations_url":"https://api.github.com/users/unlucio/orgs","repos_url":"https://api.github.com/users/unlucio/repos","events_url":"https://api.github.com/users/unlucio/events{/privacy}","received_events_url":"https://api.github.com/users/unlucio/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T06:34:13Z","updated_at":"2015-04-29T06:34:13Z","body":"hi @slang800 :)\r\nyes, we saw that too but never really found an elegant way to make it happen yet :(\r\nI saw you opened a PR to node-graylog2. I'll take a look and see if I can give an hand there :)\r\n\r\ncheers"}}