Device Resource Management System-log management
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
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 ()
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
Operation:
1. Obtain the logid to be deleted from the log list page.
2. Use logid to delete