Trim the logs for better debugging

Gedit logs for quick browsing

Comments

the_g_bomb’s picture

I had wondered about the inclusion of logrotate, to keep the current log files a bit smaller

MichaelCole’s picture

apache-access.log -> /var/log/apache2/other_vhosts_access.log
apache-error.log -> /var/log/apache2/error.log
mysql-error.log -> /var/log/mysql/error.log
php-error.log -> /var/log/php-error.log

foreach($logs as $log) {
echo "" | sudo tee $log;
}
gedit explode($logs. ' ');

MichaelCole’s picture

Component: Code » Drush
mike stewart’s picture

Assigned: Unassigned » MichaelCole
Status: Active » Postponed (maintainer needs more info)

Hey Michael -- not sure what to do with this? It this a script for cron or ??? Let's chat when you get a chance to see how we can incorporate.

MichaelCole’s picture

Status: Postponed (maintainer needs more info) » Active