log4j log output level high and low

Source: Internet
Author: User

LOG4J is an Apache open source project with a powerful log component that provides convenient logging.
Logger (Logger) is the core component of log processing
LOG4J recommends using only four levels, with priority levels ranging from high to low to fatal, ERROR, WARN, INFO, DEBUG. By defining the level here, you can control the switch to the appropriate level of log information in your application. For example, if the info level is defined here, the log information for all debug levels in the application will not be printed. The program prints logs that are above or equal to the level you set, and the higher the log level, the less logs are printed. If the setting level is info, the log information with priority higher than or equal to the info level (such as: info, WARN, ERROR) will be output and less than that level of debug will not be output.

The debug level indicates that fine-grained information events are very helpful for debugging applications.

The INFO level indicates that the message highlights the application's running process at a coarse-grained scale.

WARN level indicates a potential error situation.

The error level indicates that the system continues to operate without affecting the failure event.

FATAL level indicates that each serious error event will cause the application to exit.

Fatal [' feitl] adj. Deadly, momentous, destructive, destined

The log level of log4j is generally modified in the Log4j.properties file.

log4j log output level high and low

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.