{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/200","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/200/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/200/events","html_url":"https://github.com/winstonjs/winston/issues/200","id":8516713,"number":200,"title":"Code's file name, function, line number from where logging was done","user":{"login":"kartikrustagi","id":229426,"avatar_url":"https://avatars.githubusercontent.com/u/229426?v=3","gravatar_id":"","url":"https://api.github.com/users/kartikrustagi","html_url":"https://github.com/kartikrustagi","followers_url":"https://api.github.com/users/kartikrustagi/followers","following_url":"https://api.github.com/users/kartikrustagi/following{/other_user}","gists_url":"https://api.github.com/users/kartikrustagi/gists{/gist_id}","starred_url":"https://api.github.com/users/kartikrustagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kartikrustagi/subscriptions","organizations_url":"https://api.github.com/users/kartikrustagi/orgs","repos_url":"https://api.github.com/users/kartikrustagi/repos","events_url":"https://api.github.com/users/kartikrustagi/events{/privacy}","received_events_url":"https://api.github.com/users/kartikrustagi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winstonjs/winston/labels/feature-request","name":"feature-request","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2012-11-20T19:22:26Z","updated_at":"2015-09-24T04:52:44Z","closed_at":null,"body":"It will be really helpful to have some standard logging metadata like file name, line number and perhaps function from which the .log method was called. Something similar to what we have in https://github.com/baryon/tracer \n\nThis is how they are doing it in tracer: https://github.com/baryon/tracer/blob/master/lib/console.js\n\nBasically using the Error object to get the stack trace and these details out of it. Not sure if this is the best way. \n\nps: more than willing to contribute if you guys think this is useful"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston/issues/comments/142811411","html_url":"https://github.com/winstonjs/winston/issues/200#issuecomment-142811411","issue_url":"https://api.github.com/repos/winstonjs/winston/issues/200","id":142811411,"user":{"login":"jp-eagle","id":8952000,"avatar_url":"https://avatars.githubusercontent.com/u/8952000?v=3","gravatar_id":"","url":"https://api.github.com/users/jp-eagle","html_url":"https://github.com/jp-eagle","followers_url":"https://api.github.com/users/jp-eagle/followers","following_url":"https://api.github.com/users/jp-eagle/following{/other_user}","gists_url":"https://api.github.com/users/jp-eagle/gists{/gist_id}","starred_url":"https://api.github.com/users/jp-eagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp-eagle/subscriptions","organizations_url":"https://api.github.com/users/jp-eagle/orgs","repos_url":"https://api.github.com/users/jp-eagle/repos","events_url":"https://api.github.com/users/jp-eagle/events{/privacy}","received_events_url":"https://api.github.com/users/jp-eagle/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T04:52:44Z","updated_at":"2015-09-24T04:52:44Z","body":"+1"}}