To see the script in action, generate a 404 error, then return to this page to view the new log entry. Note that the trigger uses a faux “404 error” for the sake of this demo. To implement the technique using actual 404 errors, check out the Ajax Log tutorial and Ajax Error Logs for WordPress.