{"action":"created","issue":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/207","labels_url":"https://api.github.com/repos/savonet/liquidsoap/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/savonet/liquidsoap/issues/207/comments","events_url":"https://api.github.com/repos/savonet/liquidsoap/issues/207/events","html_url":"https://github.com/savonet/liquidsoap/issues/207","id":53417751,"number":207,"title":"truncating log files","user":{"login":"willwh","id":398396,"avatar_url":"https://avatars.githubusercontent.com/u/398396?v=3","gravatar_id":"","url":"https://api.github.com/users/willwh","html_url":"https://github.com/willwh","followers_url":"https://api.github.com/users/willwh/followers","following_url":"https://api.github.com/users/willwh/following{/other_user}","gists_url":"https://api.github.com/users/willwh/gists{/gist_id}","starred_url":"https://api.github.com/users/willwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willwh/subscriptions","organizations_url":"https://api.github.com/users/willwh/orgs","repos_url":"https://api.github.com/users/willwh/repos","events_url":"https://api.github.com/users/willwh/events{/privacy}","received_events_url":"https://api.github.com/users/willwh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-05T17:00:18Z","updated_at":"2015-05-18T21:36:44Z","closed_at":"2015-05-18T21:36:44Z","body":"Hi Folks,\r\n\r\nI run liquidsoap on Windows, and I'm wondering about truncating logs.\r\n\r\nHere's the relevant snippet from my .liq:\r\n\r\n```\r\nset(\"log.file\",true)\r\nset(\"log.file.path\",\"D:\\station1.log\")\r\nset(\"log.stdout\",true)\r\nset(\"log.level\",3)\r\nset(\"server.telnet\",true)\r\nset(\"server.telnet.port\",1234)\r\n```\r\n\r\nI've been logging since April, and they're now massive, and I'd like to be able to truncate them.\r\n\r\nTo give a little more context, the stations we run are 24/7, and we restart liquidsoap via telnet, each hour, to do some playlist reloads in a specific way.\r\n\r\nIs there any way I could truncate the logs via telnet?\r\n\r\nAny other options? Thanks!"},"comment":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/comments/103219841","html_url":"https://github.com/savonet/liquidsoap/issues/207#issuecomment-103219841","issue_url":"https://api.github.com/repos/savonet/liquidsoap/issues/207","id":103219841,"user":{"login":"toots","id":871060,"avatar_url":"https://avatars.githubusercontent.com/u/871060?v=3","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T21:36:43Z","updated_at":"2015-05-18T21:36:43Z","body":"Yeah, I agree with @mcfiredrill here. You can reopen the logs by sending a `USR1` signal to the liquidsoap process or simply use `logrotate`. There's a `liquidsoap.logrotate` script in the `scripts/` section of the sources that you can look at as well."}}