Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Log recording method

A log and recording operation technology, applied in the direction of program control devices, etc., can solve the problems of chaotic code structure, easy to add code, etc., and achieve the effect of reducing repetitive workload and reducing the possibility of errors

Active Publication Date: 2012-12-05
CHINA UNIONPAY
View PDF1 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of system development, these non-business function codes in the business code, such as logging, often cause code structure confusion
Moreover, this will lead to developers repeating the same work over and over again, and easily increases the possibility of producing wrong code

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log recording method
  • Log recording method
  • Log recording method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0050] figure 1 is a schematic configuration diagram for implementing custom metadata for recording logs according to an embodiment of the present invention. As shown in the figure, as an example, the OperationLog object (operation log object) used for operation logging may include:

[0051] (1) operationLogId attribute, which is used to identify an operation, such as an operation ID;

[0052](2) operationUserId attribute and operationUserName attribute, these two attributes can be used as user information attributes, namely user ID and user name;

[0053] (3) operationDate attribute, which represents the operation date;

[0054] (4) operationDesc attribute, which indicates the business description of the operation;

[0055] (5) operationRemark attribute, which is used to indicate supplementary information for the operation.

[0056] Those skilled...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for recording operating log and database audit log in program development on the basis of AOP (Aspect-Oriented Programming). The operating log mainly describes business operation of specific staff, and the database audit log mainly describes data change caused by business operation.

Description

technical field [0001] The present invention relates to a method for recording logs, and in particular to a method for recording logs based on AOP technology. Background technique [0002] Traditional programs often exhibit behaviors that do not naturally fit into a single program module or several closely related program modules. For example, object-oriented programming focuses on dividing the required functions into different and relatively independent and well-encapsulated classes, and letting them have their own behaviors, relying on inheritance and polymorphism to define the relationship between each other. Therefore, for example, when an update operation is to be logged about operator and database changes, it is necessary to add a log record implementation process to the implementation class that implements the update operation interface. Thus, if multiple interfaces are to be implemented, these recording procedures must be added to each implemented class. In the pro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44
Inventor 瞿争俞志刚
Owner CHINA UNIONPAY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products