enable logging mechanism and put 404 page