ufw makes /var/log/messages hard to read because of the too many ufw entries. Please make a separate ufw.log for the firewall (and a logrotate conf). Thanks ! Reproducible: Always
Add USE=syslog?
Ufw does not write logs by itself; it just sets iptables rules that do it. If you emerge ufw with examples USE flag, you'll get an example rsyslog configuration file that makes the logger write ufw log to another file. I've made configuration for syslog-ng that does what you want (really nice idea), and a logrotate rule will follow.
+*ufw-0.30.1-r3 (03 Sep 2011) + + 03 Sep 2011; Peter Volkov <pva@gentoo.org> +ufw-0.30.1-r3.ebuild, + +files/rsyslog/ufw.logrotate, +files/syslog-ng/syslog-ng.example, + +files/syslog-ng/ufw.logrotate: + Add example syslog configurations for rsyslog and syslog-ng, bug #380461, + thank Emmanuel Andry for report and Sławomir Nizio for this job.