Device Resource Management System-log management

Source: Internet
Author: User

Device Resource Management System-log management

  • Database Design

Roles of log management in projects

* Records system error logs to facilitate administrators to maintain and manage system security and performance.

* You need to add logs to log on to the system so that the administrator can view the usage of the current system.

* Logs can be used to record the users who operate on the addition, modification, and deletion of the current data.

* User: admin/admin super administrator and company leader

How to Implement log management:

* 1. Use log4j to maintain system logs

* 2. Maintain System logs in the form of database tables

    

  • Add log  

Operation

1. In the system xxxxxaction layer, two parameters are passed.

* Reuquest object (stores information about the current logon user)

* Operation details of the current method

2. Obtain the parameters to be saved in the log table from the request object.

3. Run save ()

  • View logs

 

Operation:

1. If you click "log management" from the menu on the left, query all log information. If you click "query", query the log list information based on the operator as the query condition.

2. Organization query Condition Parameters

3. Organization sorting Conditions

4. Convert the Po object to the VO object displayed on the page

 

 

  • Delete logs

  Operation:

1. Obtain the logid to be deleted from the log list page.

2. Use logid to delete

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.