{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/383","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/383/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/383/events","html_url":"https://github.com/Unitech/pm2/issues/383","id":31125499,"number":383,"title":"how to let log4js and pm2 be friend?","user":{"login":"kazaff","id":801787,"avatar_url":"https://avatars.githubusercontent.com/u/801787?v=3","gravatar_id":"","url":"https://api.github.com/users/kazaff","html_url":"https://github.com/kazaff","followers_url":"https://api.github.com/users/kazaff/followers","following_url":"https://api.github.com/users/kazaff/following{/other_user}","gists_url":"https://api.github.com/users/kazaff/gists{/gist_id}","starred_url":"https://api.github.com/users/kazaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazaff/subscriptions","organizations_url":"https://api.github.com/users/kazaff/orgs","repos_url":"https://api.github.com/users/kazaff/repos","events_url":"https://api.github.com/users/kazaff/events{/privacy}","received_events_url":"https://api.github.com/users/kazaff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-04-09T02:34:51Z","updated_at":"2015-11-17T07:44:37Z","closed_at":"2014-11-10T10:42:39Z","body":"env:\r\nnode: 0.10.26\r\nos: ubuntu 13\r\n\r\nmy code use [log4js](https://github.com/nomiddlename/log4js-node/wiki/Multiprocess) to log, when run `pm2 start app,js`, always return a error(`connect ECONNREFUSED`)~\r\n\r\nwhy?\r\n"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/157301145","html_url":"https://github.com/Unitech/pm2/issues/383#issuecomment-157301145","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/383","id":157301145,"user":{"login":"thelonglqd","id":13036097,"avatar_url":"https://avatars.githubusercontent.com/u/13036097?v=3","gravatar_id":"","url":"https://api.github.com/users/thelonglqd","html_url":"https://github.com/thelonglqd","followers_url":"https://api.github.com/users/thelonglqd/followers","following_url":"https://api.github.com/users/thelonglqd/following{/other_user}","gists_url":"https://api.github.com/users/thelonglqd/gists{/gist_id}","starred_url":"https://api.github.com/users/thelonglqd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelonglqd/subscriptions","organizations_url":"https://api.github.com/users/thelonglqd/orgs","repos_url":"https://api.github.com/users/thelonglqd/repos","events_url":"https://api.github.com/users/thelonglqd/events{/privacy}","received_events_url":"https://api.github.com/users/thelonglqd/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T07:44:37Z","updated_at":"2015-11-17T07:44:37Z","body":"PM2 in cluster mode does not run the master implementation (handling by itself)\r\nif(!cluster.isMaster){\r\n   log4js.configure('./config/log4js-master.json');\r\n}\r\n\r\nlog4js need this line of code to configure logger.\r\nDo not run this line of code lead log4js to default logger\r\n\r\ndefaultConfig =   {\r\n  appenders: [\r\n    { type: \"console\" }\r\n  ],\r\n  replaceConsole: false\r\n};\r\n\r\nDoes any options for interrupting the master job done by PM2 ?\r\n"}}