I see log files under /user/frontend and /user/logs with the name myapp_error.log and myapp_access.log Sometimes the access log can become huge. Is there a way to define a maximum size, for a single log file, and to create a new log file when the current file reaches to that size? asked 03 Dec '16, 19:18 clip |
WebFaction automatically rotates logs on a daily basis in ~/logs/frontend. You can use 'logrotate' with your own custom configuration file somewhere within your home directory for custom logging in '~/logs/user', or some other path. I believe there is a 'size' or 'hourly' option to break up the logs. Use 'man logrotate' for more details on it's usage. That or some other logging method would need to be implemented. Hope this helps. answered 03 Dec '16, 22:35 NickR ♦♦ I've tried to create a logrotate.conf file like this:
(07 Dec '16, 08:43)
clip
|