LOG4J2 path name ${web:rootdir} not found

Source: Internet
Author: User

According to the online configuration, the log is stored under this item, you can use various lookup, I follow the online configuration, including the official link have tried to click Open link

But always error, can not find the path, straight to the ${web:rootdir} thrown into the comments, the explanation did not parse, online read a lot of instructions, are so written, feel really do not know where the problem, and later saw

<listener>
    <listener-class>org.apache.logging.log4j.web.log4jservletcontextlistener</ Listener-class>
</listener>
is to write directly to

<context-param>
    <param-name>isLog4jAutoInitializationDisabled</param-name>
    < Param-value>false</param-value>
</context-param>
Below, while my in the back, estimating is not related to loading order, listener adjustment to the front, problem solving

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.