{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/9898","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9898/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9898/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9898/events","html_url":"https://github.com/woothemes/woocommerce/issues/9898","id":123568280,"number":9898,"title":"Introduce log file size limitation","user":{"login":"javorszky","id":1196299,"avatar_url":"https://avatars.githubusercontent.com/u/1196299?v=3","gravatar_id":"","url":"https://api.github.com/users/javorszky","html_url":"https://github.com/javorszky","followers_url":"https://api.github.com/users/javorszky/followers","following_url":"https://api.github.com/users/javorszky/following{/other_user}","gists_url":"https://api.github.com/users/javorszky/gists{/gist_id}","starred_url":"https://api.github.com/users/javorszky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javorszky/subscriptions","organizations_url":"https://api.github.com/users/javorszky/orgs","repos_url":"https://api.github.com/users/javorszky/repos","events_url":"https://api.github.com/users/javorszky/events{/privacy}","received_events_url":"https://api.github.com/users/javorszky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T22:25:29Z","updated_at":"2015-12-22T22:25:29Z","closed_at":null,"body":"On some sites the log files can grow quite substantial (I'm currently FTPing a paypal one that's 154 MB). That means a visit to System Status -> Logs will either not show the log file, or take ages to download the entire file. Additionally some processes that write to them can become slow due to PHP needing to open the entire file, write to the end, close it, often a lot of times in succession.\r\n\r\nI propose a log file rotation. Once a file hits a filterable upper limit (5 MB for example), a new one can be started, and the previous archived (datetime added to file name) and moved to an archive folder."}}