/var/www/html/moodle/mysql/data/*.log {
  weekly
  rotate 150
  dateext
  compress
  copytruncate
  missingok
  
}
