How to turn off log information for spring or hibernate configured in log4j

Source: Internet
Author: User

Usually when building a Web project, we usually need to configure the log for it, in order to understand what happened during the boot process, if an error occurred during startup, it is easy to view the wrong information, but when the project is deployed to the server, the log information will take a lot of time, the boot speed will be very slow ,

So how do I turn off these log messages?

Only need to configure the following two words in the lo4j.properties file

Log4j.logger.org.springframework=off
Log4j.logger.org.hibernate=off

How to turn off log information for spring or hibernate configured in log4j

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.