{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/115","repository_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file","labels_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/115/comments","events_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/115/events","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/115","id":279466223,"number":115,"title":"ERROR TypeError: fs.readdir is not a function","user":{"login":"NewbieAngular","id":32111240,"avatar_url":"https://avatars1.githubusercontent.com/u/32111240?v=4","gravatar_id":"","url":"https://api.github.com/users/NewbieAngular","html_url":"https://github.com/NewbieAngular","followers_url":"https://api.github.com/users/NewbieAngular/followers","following_url":"https://api.github.com/users/NewbieAngular/following{/other_user}","gists_url":"https://api.github.com/users/NewbieAngular/gists{/gist_id}","starred_url":"https://api.github.com/users/NewbieAngular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewbieAngular/subscriptions","organizations_url":"https://api.github.com/users/NewbieAngular/orgs","repos_url":"https://api.github.com/users/NewbieAngular/repos","events_url":"https://api.github.com/users/NewbieAngular/events{/privacy}","received_events_url":"https://api.github.com/users/NewbieAngular/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-05T17:40:37Z","updated_at":"2017-12-08T16:48:53Z","closed_at":null,"author_association":"NONE","body":"This is the source Code \r\n\r\n```\r\nvar winston = require('winston');\r\nrequire('winston-daily-rotate-file');\r\nconst tsFormat = () => (new Date()).toLocaleTimeString();\r\n\r\nvar transport = new (winston.transports.DailyRotateFile)({\r\n  filename: './log',\r\n  datePattern: 'yyyy-MM-dd.',\r\n  prepend: true,\r\n  timestamp: tsFormat,\r\n  level:   'debug',\r\n  maxDays:60,\r\n  file: new winston.transports.File({ filename: 'Access.log', level: 'debug' })\r\n\r\n});\r\n\r\nvar logger = new (winston.Logger)({\r\n  transports: [\r\n    transport\r\n  ]\r\n});\r\n```\r\n\r\nGetting the error \"`ERROR TypeError: fs.readdir is not a function`\"\r\n\r\nIf I remove the '`maxDays:60`' option, I don't see this error . However, another one pops up.\r\n\r\n`TypeError: fs.stat is not a function`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/comments/350312026","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/115#issuecomment-350312026","issue_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/115","id":350312026,"user":{"login":"NewbieAngular","id":32111240,"avatar_url":"https://avatars1.githubusercontent.com/u/32111240?v=4","gravatar_id":"","url":"https://api.github.com/users/NewbieAngular","html_url":"https://github.com/NewbieAngular","followers_url":"https://api.github.com/users/NewbieAngular/followers","following_url":"https://api.github.com/users/NewbieAngular/following{/other_user}","gists_url":"https://api.github.com/users/NewbieAngular/gists{/gist_id}","starred_url":"https://api.github.com/users/NewbieAngular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NewbieAngular/subscriptions","organizations_url":"https://api.github.com/users/NewbieAngular/orgs","repos_url":"https://api.github.com/users/NewbieAngular/repos","events_url":"https://api.github.com/users/NewbieAngular/events{/privacy}","received_events_url":"https://api.github.com/users/NewbieAngular/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T16:48:53Z","updated_at":"2017-12-08T16:48:53Z","author_association":"NONE","body":"5.5.1"}}
{"actor":{"display_login":"NewbieAngular"}}