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

A method of logging

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: 2016-03-09
CHINA UNIONPAY
View PDF1 Cites 0 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
  • A method of logging
  • A method of logging
  • A method of logging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0050] figure 1 It is a schematic diagram of the configuration for implementing custom metadata for recording logs according to an embodiment of the present invention. As shown, as an example, an OperationLog object (operation log object) 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 represents the business description of the operation;

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

[0056] Those skilled in th...

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, well-encapsulated classes, and letting them have their own behavior, relying on inheritance and polymorphism to define their relationship with each other. Therefore, for example, when an update operation is to be logged about operator and database changes, the process of implementing logging needs to be added to the implementation class that implements the update operation interface. Thus, if multiple interfaces are to be implemented, these logging procedures must be added to each implemented class. In the process of sys...

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
Patent Type & Authority Patents(China)
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