Change the trace level for code_jsp

Issue

  • How to change the trace level for the following 'WARN', code-404:
    WARN  [default task-2629][code_jsp:154] {code="404", msg="Not Found", uri=/code.png

Environment

  • Liferay DXP 7.3

Resolution

  • The user can change the trace level for 404 not found, by changing the log level of the below class:
    portal_web.docroot.errors.code_jsp

Additional Information

  • For setting the log levels for other classes, as a recommendation, the most effective is to look in the code where the logger is instantiated and see the category used. For example, in this case, it can be found in the following line:
    private static final Log _log = LogFactoryUtil.getLog("portal_web.docroot.errors.code_jsp");
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助