Javaweb System Log Scheme

Source: Internet
Author: User
Tags system log


Log specification: All outputs of the project are output through the log framework, even if output to the console


1.Tomcat log, due to the log, will not be split by day (Linux), instead of log4j, mainly used to output all console information, the project did not intercept the exception


2. Project Access log, record, time, IP, access path (URL or interface), owning module, MySQL (table partition) or MongoDB (note memory problem), mainly used for statistical


3. Operation Log, record, time, member, IP, access path (URL or interface), module of the registered member of the project , using MySQL (table partitioning) or MONGODB (note memory issues), mainly used for statistical


4. The key function of the project tracking log, such as related to different systems call synchronization, involving the amount, with Logback and MySQL (table partition) simultaneously recorded , mainly for error tracking, management


5. Project scheduled task log, record, time, task, status, with Logback, separate out a file record Logback_job.log


6. The project can intercept abnormal log, record, time, exception, with Logback, consider the output to the console, let it write to Tomcat log, easy to manage the exception, or independently of a file record Logback_ Error.log



Javaweb System Log Scheme

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.