System Operation Log Record time

Source: Internet
Author: User

1. It is obviously inappropriate to use a filter to intercept data at the front end, because the data transmitted from the front end is generally compressed in JSON format to improve efficiency, and the readability is poor. In addition, when Filtering for the first time, you cannot know whether the system service is successfully executed.

Therefore, the best place to record the log location should be in the manager at the business layer, where developers will describe the operation in a fixed format.

You can add a record without recording its details. You only need to know its UUID.

You need to know the details of modifying or deleting a record.

System operation logs can be fully recorded by log4ji at the record level of info.

Log4j should analyze its source code, and its source code should be of great analytical value.

Operation logs do not need to be stored in the database to avoid excessive pressure on the database. In the future, report tools can directly read text files,

In the future, databases should only store business data.

All definitions including log records can be stored in XML.

 

 

 

 

 

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.