Question

So far the only way I've found to do this is by telling Lighty to pipe its logs through an app called "vlogger". Is there a way to break out log files by date without introducing any external dependencies or cron jobs? I feel like there might be a way to do it with config file variables, but my Lighty-fu just isn't strong enough.

Edit: Looks like logrotate may be my best bet.

Was it helpful?

Solution

I only know the option to use syslog for log handling or additional software like "logrotate" or something similiar. Perhaps the manual helps.

OTHER TIPS

Here’s how to configure logrotate for lighty: Lighttpd: Log File Rotation

Im using cronolog instead of vlogger to do this without any problems. Unfortunately, you can't use this technique to rotate the error log. Looking at old Lighttpd bug reports, there was a patch to fix this for error logs but it was rejected upsteam.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top