Rewrite the awful check_log plugin to do what we want