{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/115","repository_url":"https://api.github.com/repos/fluent/fluent-logger-node","labels_url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/115/comments","events_url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/115/events","html_url":"https://github.com/fluent/fluent-logger-node/issues/115","id":373957051,"node_id":"MDU6SXNzdWUzNzM5NTcwNTE=","number":115,"title":"Logging for all transport stop if fluent server is not available","user":{"login":"NetForces","id":984831,"node_id":"MDQ6VXNlcjk4NDgzMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/984831?v=4","gravatar_id":"","url":"https://api.github.com/users/NetForces","html_url":"https://github.com/NetForces","followers_url":"https://api.github.com/users/NetForces/followers","following_url":"https://api.github.com/users/NetForces/following{/other_user}","gists_url":"https://api.github.com/users/NetForces/gists{/gist_id}","starred_url":"https://api.github.com/users/NetForces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetForces/subscriptions","organizations_url":"https://api.github.com/users/NetForces/orgs","repos_url":"https://api.github.com/users/NetForces/repos","events_url":"https://api.github.com/users/NetForces/events{/privacy}","received_events_url":"https://api.github.com/users/NetForces/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-25T13:48:44Z","updated_at":"2018-10-30T05:52:29Z","closed_at":null,"author_association":"NONE","body":"In the case where the fluent server becomes unavailable the logging for all transports stop logging and not only the fluent one.\r\n\r\nI was able to reproduce this with a slightly modified version of the `winston` example:\r\n\r\n```\r\nconst winston = require('winston');\r\nconst fluentNodeLogger = require('fluent-logger');\r\n\r\nconst logger = winston.createLogger({\r\n  transports: [\r\n    new (fluentNodeLogger.support.winstonTransport())(\r\n      '___specialcustomtesttag',\r\n      {\r\n        host: 'localhost',\r\n        port: 24224,\r\n        timeout: 3.0\r\n      }\r\n    ),\r\n    new winston.transports.Console({\r\n      format: winston.format.combine(\r\n        winston.format.colorize(),\r\n        winston.format.printf(info => `${info.level} ${new Date().toISOString()} ${info.message}`)\r\n      ),\r\n    }),\r\n  ],\r\n});\r\n\r\n(function repeatLog() {\r\n  setTimeout(() => {\r\n    logger.info('it works');\r\n    repeatLog();\r\n  }, 1000)\r\n})();\r\n```\r\n\r\nRunning this without any fluent listening on port 24224 will cause even the console log to stop after 16 loop.\r\n\r\nIf a fluent server is listening (or emulated with ` nc -lv 24224`) it keeps on going till I stop the fluent server and then it keep on logging on the console for 16 loops and then stops logging. Restarting the fluent server does not make the logging (console and fluent) start again."},"comment":{"url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/comments/434180535","html_url":"https://github.com/fluent/fluent-logger-node/issues/115#issuecomment-434180535","issue_url":"https://api.github.com/repos/fluent/fluent-logger-node/issues/115","id":434180535,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDE4MDUzNQ==","user":{"login":"okkez","id":33111,"node_id":"MDQ6VXNlcjMzMTEx","avatar_url":"https://avatars1.githubusercontent.com/u/33111?v=4","gravatar_id":"","url":"https://api.github.com/users/okkez","html_url":"https://github.com/okkez","followers_url":"https://api.github.com/users/okkez/followers","following_url":"https://api.github.com/users/okkez/following{/other_user}","gists_url":"https://api.github.com/users/okkez/gists{/gist_id}","starred_url":"https://api.github.com/users/okkez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkez/subscriptions","organizations_url":"https://api.github.com/users/okkez/orgs","repos_url":"https://api.github.com/users/okkez/repos","events_url":"https://api.github.com/users/okkez/events{/privacy}","received_events_url":"https://api.github.com/users/okkez/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T05:52:29Z","updated_at":"2018-10-30T05:52:29Z","author_association":"CONTRIBUTOR","body":"It is difficult to handle it in the fluent-logger-node library."}}
{"actor":{"display_login":"okkez"}}