What we have done with syslog and you may be able to do depending on processing speed etc is to pipe the log writing process through a perl script en-route to the log file.
The script can then watch for required patterns as they occur and fire off some process when needed.