# BackendSide MailPanel — log rotation
#
# Drop this file into /etc/logrotate.d/backendside-mailpanel to bound the size
# of the panel's application logs. systemd journal already manages its own
# rotation; this only covers the file-based logs written by internal/logger.
#
#   sudo cp /usr/share/backendside-mailpanel/logrotate.conf \
#           /etc/logrotate.d/backendside-mailpanel
#
# Keep 14 days of compressed history, rotate at 50 MiB, no service restart
# (logger reopens its files on next write via O_APPEND so a missing file
# is recreated on the spot).

/var/log/backendside-mailpanel/dev.log
/var/log/backendside-mailpanel/server.log {
    weekly
    rotate 14
    size 50M
    missingok
    notifempty
    compress
    delaycompress
    copytruncate
}
