{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/6","labels_url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/6/comments","events_url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/6/events","html_url":"https://github.com/FormidableLabs/express-winston-middleware/pull/6","id":65409304,"number":6,"title":"Create new winston logger only once for each option set","user":{"login":"didebeach","id":7933457,"avatar_url":"https://avatars.githubusercontent.com/u/7933457?v=3","gravatar_id":"","url":"https://api.github.com/users/didebeach","html_url":"https://github.com/didebeach","followers_url":"https://api.github.com/users/didebeach/followers","following_url":"https://api.github.com/users/didebeach/following{/other_user}","gists_url":"https://api.github.com/users/didebeach/gists{/gist_id}","starred_url":"https://api.github.com/users/didebeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didebeach/subscriptions","organizations_url":"https://api.github.com/users/didebeach/orgs","repos_url":"https://api.github.com/users/didebeach/repos","events_url":"https://api.github.com/users/didebeach/events{/privacy}","received_events_url":"https://api.github.com/users/didebeach/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T09:36:14Z","updated_at":"2015-03-31T13:16:24Z","closed_at":"2015-03-31T13:16:24Z","pull_request":{"url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/pulls/6","html_url":"https://github.com/FormidableLabs/express-winston-middleware/pull/6","diff_url":"https://github.com/FormidableLabs/express-winston-middleware/pull/6.diff","patch_url":"https://github.com/FormidableLabs/express-winston-middleware/pull/6.patch"},"body":"Just a different approach by creating only once the real winston logger for each Option set.\r\n\r\nAgain this Version is working for me as it solves my Problem with the \"Memory leak\" and still supports meta data for every request."},"comment":{"url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/comments/88079728","html_url":"https://github.com/FormidableLabs/express-winston-middleware/pull/6#issuecomment-88079728","issue_url":"https://api.github.com/repos/FormidableLabs/express-winston-middleware/issues/6","id":88079728,"user":{"login":"ryan-roemer","id":445557,"avatar_url":"https://avatars.githubusercontent.com/u/445557?v=3","gravatar_id":"","url":"https://api.github.com/users/ryan-roemer","html_url":"https://github.com/ryan-roemer","followers_url":"https://api.github.com/users/ryan-roemer/followers","following_url":"https://api.github.com/users/ryan-roemer/following{/other_user}","gists_url":"https://api.github.com/users/ryan-roemer/gists{/gist_id}","starred_url":"https://api.github.com/users/ryan-roemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryan-roemer/subscriptions","organizations_url":"https://api.github.com/users/ryan-roemer/orgs","repos_url":"https://api.github.com/users/ryan-roemer/repos","events_url":"https://api.github.com/users/ryan-roemer/events{/privacy}","received_events_url":"https://api.github.com/users/ryan-roemer/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T13:16:24Z","updated_at":"2015-03-31T13:16:24Z","body":"This doesn't work because objects only take string keys, and the string representation of any object is `\"[object Object]\"`\r\n\r\nSo you are effectively doing the following:\r\n\r\n```js\r\ninteralLoggerHash[\"[object Object]\"] = foo;\r\ninteralLoggerHash[\"[object Object]\"] = bar;\r\ninteralLoggerHash[\"[object Object]\"] = baz;\r\n```\r\n\r\nWhich is obviously not what we want. Closing this PR to re-examine the original issue.\r\n"}}