{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/49","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/49/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/49/comments","events_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/49/events","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/pull/49","id":165079720,"number":49,"title":"Enable the deletion of old log files after X log files have been created.","user":{"login":"markjbyrne81","id":2169529,"avatar_url":"https://avatars.githubusercontent.com/u/2169529?v=3","gravatar_id":"","url":"https://api.github.com/users/markjbyrne81","html_url":"https://github.com/markjbyrne81","followers_url":"https://api.github.com/users/markjbyrne81/followers","following_url":"https://api.github.com/users/markjbyrne81/following{/other_user}","gists_url":"https://api.github.com/users/markjbyrne81/gists{/gist_id}","starred_url":"https://api.github.com/users/markjbyrne81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markjbyrne81/subscriptions","organizations_url":"https://api.github.com/users/markjbyrne81/orgs","repos_url":"https://api.github.com/users/markjbyrne81/repos","events_url":"https://api.github.com/users/markjbyrne81/events{/privacy}","received_events_url":"https://api.github.com/users/markjbyrne81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-12T13:25:23Z","updated_at":"2016-07-12T13:31:48Z","closed_at":"2016-07-12T13:31:06Z","pull_request":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/pulls/49","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/pull/49","diff_url":"https://github.com/winstonjs/winston-daily-rotate-file/pull/49.diff","patch_url":"https://github.com/winstonjs/winston-daily-rotate-file/pull/49.patch"},"body":"Ideally, when configuring a daily rotate file for winston we should be able to dictate the maximum number of log files that are kept e.g. 90 days worth.  Currently, the winston-daily-rotate-file only enables the deletion of old files when maxsize is set.\r\n\r\nThis pull requests adds an internal variable called _currentFiles which will track all log files created by this transport (including scanning for previously created files upon startup) and, upon creation of a new log file and if only maxFiles is set, will delete old log files starting with the oldest until only the maximum number of files has been reached."},"comment":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/comments/232047855","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/pull/49#issuecomment-232047855","issue_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/49","id":232047855,"user":{"login":"markjbyrne81","id":2169529,"avatar_url":"https://avatars.githubusercontent.com/u/2169529?v=3","gravatar_id":"","url":"https://api.github.com/users/markjbyrne81","html_url":"https://github.com/markjbyrne81","followers_url":"https://api.github.com/users/markjbyrne81/followers","following_url":"https://api.github.com/users/markjbyrne81/following{/other_user}","gists_url":"https://api.github.com/users/markjbyrne81/gists{/gist_id}","starred_url":"https://api.github.com/users/markjbyrne81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markjbyrne81/subscriptions","organizations_url":"https://api.github.com/users/markjbyrne81/orgs","repos_url":"https://api.github.com/users/markjbyrne81/repos","events_url":"https://api.github.com/users/markjbyrne81/events{/privacy}","received_events_url":"https://api.github.com/users/markjbyrne81/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T13:31:48Z","updated_at":"2016-07-12T13:31:48Z","body":"Closing due to failing test.  Will re-open once resolved."}}
{"actor":{"display_login":"markjbyrne81"}}