You can modify syslog.conf to trap this messages.
for example, if you have standard syslog then line
*.* /var/log/all.log
store all messages.
If you have rsyslog (modern debian for example) you can start some script (send email etc) on event
Doesn't work. I use rsyslog, but the shutdown command doesn't seem to get sent to syslog so rsyslog doesn't pick it up (other messages are logged fine).