{"action":"created","issue":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/176","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/176/labels{/name}","comments_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/176/comments","events_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/176/events","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/176","id":358511135,"node_id":"MDU6SXNzdWUzNTg1MTExMzU=","number":176,"title":"Skip rotation when min size limit not reached. ","user":{"login":"vishalgarale","id":9536053,"node_id":"MDQ6VXNlcjk1MzYwNTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9536053?v=4","gravatar_id":"","url":"https://api.github.com/users/vishalgarale","html_url":"https://github.com/vishalgarale","followers_url":"https://api.github.com/users/vishalgarale/followers","following_url":"https://api.github.com/users/vishalgarale/following{/other_user}","gists_url":"https://api.github.com/users/vishalgarale/gists{/gist_id}","starred_url":"https://api.github.com/users/vishalgarale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishalgarale/subscriptions","organizations_url":"https://api.github.com/users/vishalgarale/orgs","repos_url":"https://api.github.com/users/vishalgarale/repos","events_url":"https://api.github.com/users/vishalgarale/events{/privacy}","received_events_url":"https://api.github.com/users/vishalgarale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-10T08:06:31Z","updated_at":"2018-09-25T10:07:13Z","closed_at":null,"author_association":"NONE","body":"Is there is an option to rotate and zip only if min size reached?\r\n\r\nBelow is the configuration we used.\r\n\r\n```\r\nvar transactionTransport = new (winston.transports.DailyRotateFile)({\r\n    filename: __dirname+'/../logs/transaction_-%DATE%_'+worker+'.log',\r\n    datePattern: 'YYYY-MM-DD-HH',\r\n    zippedArchive: true,\r\n    maxSize: '10m',\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/comments/424283599","html_url":"https://github.com/winstonjs/winston-daily-rotate-file/issues/176#issuecomment-424283599","issue_url":"https://api.github.com/repos/winstonjs/winston-daily-rotate-file/issues/176","id":424283599,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDI4MzU5OQ==","user":{"login":"vishalgarale","id":9536053,"node_id":"MDQ6VXNlcjk1MzYwNTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9536053?v=4","gravatar_id":"","url":"https://api.github.com/users/vishalgarale","html_url":"https://github.com/vishalgarale","followers_url":"https://api.github.com/users/vishalgarale/followers","following_url":"https://api.github.com/users/vishalgarale/following{/other_user}","gists_url":"https://api.github.com/users/vishalgarale/gists{/gist_id}","starred_url":"https://api.github.com/users/vishalgarale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishalgarale/subscriptions","organizations_url":"https://api.github.com/users/vishalgarale/orgs","repos_url":"https://api.github.com/users/vishalgarale/repos","events_url":"https://api.github.com/users/vishalgarale/events{/privacy}","received_events_url":"https://api.github.com/users/vishalgarale/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T10:07:13Z","updated_at":"2018-09-25T10:07:13Z","author_association":"NONE","body":"@mattberther I want rotation when any one below condition is true\r\n\r\n1. Max size reached\r\n2. Time interval reached and file size > min size \r\n\r\nIn given to your example, it will rotate only when 10m gets reached, not based upon particular interval. "}}
{"actor":{"display_login":"vishalgarale"}}