@Override
        public void run() {
            try {
                // Ensure that saved audit logs are not too old
                ensureMaxDays();
                // Save queued packets to the audit logs
                saveQueuedPackets();
            }
            catch (Throwable e) {
                Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
            }
        }
Saves the queued entries to an XML file and checks that very old files are deleted.
xmppserver/src/main/java/org/jivesoftware/openfire/audit/spi/AuditorImpl.java