{"action":"created","issue":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/386","labels_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/386/comments","events_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/386/events","html_url":"https://github.com/krakenjs/kraken-js/issues/386","id":77956979,"number":386,"title":"Writing Access Logs to file  (morgan)","user":{"login":"tomalex0","id":208168,"avatar_url":"https://avatars.githubusercontent.com/u/208168?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalex0","html_url":"https://github.com/tomalex0","followers_url":"https://api.github.com/users/tomalex0/followers","following_url":"https://api.github.com/users/tomalex0/following{/other_user}","gists_url":"https://api.github.com/users/tomalex0/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalex0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalex0/subscriptions","organizations_url":"https://api.github.com/users/tomalex0/orgs","repos_url":"https://api.github.com/users/tomalex0/repos","events_url":"https://api.github.com/users/tomalex0/events{/privacy}","received_events_url":"https://api.github.com/users/tomalex0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/krakenjs/kraken-js/labels/question","name":"question","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-19T06:29:32Z","updated_at":"2015-05-19T18:55:20Z","closed_at":"2015-05-19T14:29:53Z","body":"I'm trying to  write access logs into a file  as seen here https://github.com/expressjs/morgan#log-file-rotation\r\n\r\nBelow is my config options for morgan,  how to add file writing option to the  below config\r\n\r\n```\r\n\"logger\": {\r\n            \"module\": {\r\n                \"name\": \"morgan\",\r\n                \"arguments\": [\r\n                    \":remote-addr - :remote-user [:date[clf]] ':method :url HTTP/:http-version' :status :res[content-length] ':referrer' ':user-agent' :req[header] :res[header] :response-time ms\",\r\n                    {\r\n\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n```"},"comment":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/comments/103631868","html_url":"https://github.com/krakenjs/kraken-js/issues/386#issuecomment-103631868","issue_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/386","id":103631868,"user":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T18:55:20Z","updated_at":"2015-05-19T18:55:20Z","body":"try this:\r\n\r\n```\r\nmodule.exports = function (settings) {\r\n    return morgan(settings and setup here);\r\n}\r\n```"}}