You can do this with syslog
You can do this with syslog