Disable memcached logs through log4j

Source: Internet
Author: User

Using log4jSet the logger impl to net. spy. log. log4JLogger. for example:-Dnet. spy. log. loggerImpl = net. spy. memcached. compat. log. log4JLogger Using Java's Built-in LoggingSet the logger impl to net. spy. memcached. compat. log. sunLogger. for example:-Dnet. spy. log. loggerImpl = net. spy. memcached. compat. log. the actual operation of SunLogger to log4j is as follows: Under tomcat bin, resume setenv. sh: L4J_OPTS = "-Dnet. spy. log. loggerImpl = net. spy. memcached. compat. log. log4JLogger "JVM_OPTS =" "CATALINA_OPTS =" $ {JVM_OPTS }$ {L4J_OPTS} "Disable net or more precise methods in log4j, such as: log4j.logger.net = error, stdout restart. spy. memcached. transcoders. serializingTranscoder = error, stdout

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.