Trong triết lý của chúng tôi, nhật ký lỗi luôn do lỗi lập trình viên gây ra.Làm cách nào để tạo các trang 404 không ghi nhật ký lỗi?
Trong Chơi 1.2.x, chế độ sản, bất kỳ truy cập đến một trang không tồn tại sẽ kích hoạt một bản ghi lỗi:
ERROR (play) ~
MyController.myAction action not found
Action not found
Action MyController.myAction could not be found. Error raised is No method public static void myAction() was found in class controllers.MyController
play.exceptions.ActionNotFoundException: Action MyController.myAction not found
at play.mvc.ActionInvoker.getActionMethod(ActionInvoker.java:604)
at play.mvc.ActionInvoker.resolve(ActionInvoker.java:85)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.Exception: No method public static void myAction() was found in class controllers.MyController
Làm thế nào tôi có thể cấu hình Chơi không phát hành một bản ghi lỗi trong trường hợp này? Có thể mức độ nhật ký WARN
nhiều nhất?