# MultiPortal Core application logs. The Yii FileTarget reopens the log file on
# every flush, so plain rename-based rotation (create, not copytruncate) is safe
# and loses no lines. Rotated by the distro's daily logrotate timer as root with
# the default state file (never a service-writable path). Intra-day growth is
# bounded by Yii's own FileTarget maxFileSize rotation, so no hourly cron is
# needed. The websocket proxy and queue workers log to journald, not here.
/var/log/multiportal/*.log {
    daily
    rotate 14
    maxsize 100M
    missingok
    notifempty
    compress
    delaycompress
    su multiportal adm
    create 0640 multiportal adm
}
