Method and device for collecting audit logs based on AOP aspect and readable medium
A log and facet technology, which is applied in the field of collecting audit logs based on AOP facets, can solve problems such as isolation and reduced coupling, and achieve the effect of reducing coupling, reducing coupling, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] A method for collecting audit logs based on the AOP aspect of the present invention, based on the AOP aspect, realizes dynamically adding log records for the program without modifying the source code through the pre-compilation mode and the runtime dynamic proxy, and the method includes the following steps:
[0036] S100. Configure the basic class, including defining the annotation class and affirming the storage parameters of the annotation class, defining the AOP aspect class and annotating the method, customizing the enumeration class for the annotation class to perform parameter transfer, and defining the logging object class, which is stored in the method body There is log storage logic, and the attributes defined by the log record object class are called by the AOP aspect class for log storage;
[0037] S200. Define a common public visitLog tool class according to business requirements, customize attribute values according to business requirements, and customize ...
Embodiment 2
[0051] An embodiment of the present invention provides a device, including: at least one memory and at least one processor; the at least one memory is used to store a machine-readable program; the at least one processor is used to call the machine-readable program, Execute the method disclosed in Example 1.
[0052] It should be understood that the structures shown in the embodiments of the present invention do not constitute a specific limitation on the device. In other embodiments of the present invention, the apparatus may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components may be realized in hardware, software, or a combination of software and hardware.
[0053] The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content ...
Embodiment 3
[0055] The embodiment of the present invention also provides a readable medium, which is a computer-readable medium, and computer instructions are stored on the computer-readable medium. When the computer instructions are executed by the processor, the processor executes the method in Embodiment 1 of the present invention. . Specifically, a system or device equipped with a storage medium may be provided, on which a software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com