{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston/issues/660","labels_url":"https://api.github.com/repos/winstonjs/winston/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston/issues/660/comments","events_url":"https://api.github.com/repos/winstonjs/winston/issues/660/events","html_url":"https://github.com/winstonjs/winston/issues/660","id":94246419,"number":660,"title":"File count rotate issue or requirement.","user":{"login":"geforcesong","id":5226567,"avatar_url":"https://avatars.githubusercontent.com/u/5226567?v=3","gravatar_id":"","url":"https://api.github.com/users/geforcesong","html_url":"https://github.com/geforcesong","followers_url":"https://api.github.com/users/geforcesong/followers","following_url":"https://api.github.com/users/geforcesong/following{/other_user}","gists_url":"https://api.github.com/users/geforcesong/gists{/gist_id}","starred_url":"https://api.github.com/users/geforcesong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geforcesong/subscriptions","organizations_url":"https://api.github.com/users/geforcesong/orgs","repos_url":"https://api.github.com/users/geforcesong/repos","events_url":"https://api.github.com/users/geforcesong/events{/privacy}","received_events_url":"https://api.github.com/users/geforcesong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T08:15:12Z","updated_at":"2015-07-15T06:22:04Z","closed_at":null,"body":"Hello Guys,\r\n\r\nI am using Winston for logging in my project. There is a requirement for us I don't know how to implement or can you please kindly modify the package to have that feature for us.\r\nThe thing is as follows,\r\nwhen use file rotation and set maxfiles and maxsize, it works but it will add new file count at the end of each log file, which is\r\n\r\nwhen set maxfiles to 5,\r\naccess.log, access1.log, access2.log, access3.log, access4.log\r\nthen it will keep increasing to,\r\naccess1.log, access2.log, access3.log, access4.log, access5.log\r\nthen it will keep increasing to,\r\naccess2.log, access3.log, access4.log, access5.log, access6.log\r\n\r\nThis is current behavior, however what we want is that if reach the maxfiles, we should use the first file name instead of increasing the file count all the time.\r\nthat is it will always have these files,\r\naccess.log, access1.log, access2.log, access3.log, access4.log\r\n\r\nwhen reach the access4.log, then delete the first access.log and create a new access log and log the data in this file.\r\nBTW, i have set the zippedArchive to true,  but i didn't see the files got zipped."},"comment":{"url":"https://api.github.com/repos/winstonjs/winston/issues/comments/121503343","html_url":"https://github.com/winstonjs/winston/issues/660#issuecomment-121503343","issue_url":"https://api.github.com/repos/winstonjs/winston/issues/660","id":121503343,"user":{"login":"siddhartha-gupta","id":1487517,"avatar_url":"https://avatars.githubusercontent.com/u/1487517?v=3","gravatar_id":"","url":"https://api.github.com/users/siddhartha-gupta","html_url":"https://github.com/siddhartha-gupta","followers_url":"https://api.github.com/users/siddhartha-gupta/followers","following_url":"https://api.github.com/users/siddhartha-gupta/following{/other_user}","gists_url":"https://api.github.com/users/siddhartha-gupta/gists{/gist_id}","starred_url":"https://api.github.com/users/siddhartha-gupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddhartha-gupta/subscriptions","organizations_url":"https://api.github.com/users/siddhartha-gupta/orgs","repos_url":"https://api.github.com/users/siddhartha-gupta/repos","events_url":"https://api.github.com/users/siddhartha-gupta/events{/privacy}","received_events_url":"https://api.github.com/users/siddhartha-gupta/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T06:22:04Z","updated_at":"2015-07-15T06:22:04Z","body":"Yup zippedArchieve not working with 'DailyRotateFile'"}}