404 template and logging