CN112346949A - AOP-based operation log recording method and system, electronic device and medium - Google Patents
AOP-based operation log recording method and system, electronic device and medium Download PDFInfo
- Publication number
- CN112346949A CN112346949A CN202011377472.0A CN202011377472A CN112346949A CN 112346949 A CN112346949 A CN 112346949A CN 202011377472 A CN202011377472 A CN 202011377472A CN 112346949 A CN112346949 A CN 112346949A
- Authority
- CN
- China
- Prior art keywords
- operation log
- recording
- type
- information
- log information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 222
- 230000008569 process Effects 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 12
- 239000003999 initiator Substances 0.000 claims description 3
- 238000007726 management method Methods 0.000 abstract description 7
- 230000008447 perception Effects 0.000 abstract description 5
- 238000013024 troubleshooting Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000009303 advanced oxidation process reaction Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Library & Information Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses an AOP-based operation log recording method, an AOP-based operation log recording system, an electronic device and a computer-readable storage medium, wherein the method comprises the following steps: after receiving an operation request sent by a user terminal, determining a target method to be called; the target method is enhanced based on AOP in advance; when the target method is executed, recording first type operation log information needing to be recorded; the first type of operation log information comprises information in the execution process of the target method; after the target method is called, recording second type operation log information needing to be recorded; the second type of operation log information comprises an execution result of the target method; and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording. The method and the device can record the specific calling information of the target method, have no omission and no perception for users, and can inquire and trace the information when the information is needed subsequently, thereby realizing the management of the system and being convenient for troubleshooting.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an AOP-based operation log recording method and system, an electronic device, and a computer-readable storage medium.
Background
In most service scenes, a large number of interactive operations exist between a client and a server, and for the operation information, unified management and recording are needed, so that management personnel can inquire and trace the operation information, and the method has important significance for troubleshooting, tracing or recovering the past state of a system. Therefore, how to realize the operation information recording is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide an AOP-based operation log recording method and system, an electronic device and a computer-readable storage medium, which can record information without omission and perception of users, and can inquire and trace information when information is needed subsequently.
In order to achieve the above object, the present application provides an AOP-based operation log recording method, including:
after receiving an operation request sent by a user terminal, determining a target method to be called in the operation request; the target method is enhanced based on AOP in advance;
when the target method is executed, recording first type operation log information needing to be recorded; wherein the first type of operation log information comprises information in the execution process of the target method;
after the target method is called, recording second type operation log information needing to be recorded; wherein the second type of operation log information includes an execution result of the target method;
and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording.
Optionally, before receiving the operation request, the method further includes:
acquiring a predefined target class, wherein the target class is used for recording operation information;
correspondingly, when the target method is executed, the first type of operation log information needing to be recorded is recorded; after the target method is called, recording second type operation log information needing to be recorded; the writing the first type of operation log information and the second type of operation log information into a cache for storage and recording includes:
when the target method is executed, writing first-class operation log information needing to be recorded into a corresponding target class;
after the target method is called, writing second type operation log information needing to be recorded into a corresponding target type;
and writing the target class entity comprising the operation log information into a cache for storage and recording.
Optionally, before receiving the operation request, the method further includes:
acquiring a predefined target method; the target method comprises a method for modifying data information, a method for inquiring data information and a method for calling a method in the system.
Optionally, when the target method is executed, recording first type of operation log information to be recorded includes:
when the target method is executed, recording request related information of the operation request; the request related information comprises a user IP address, user identity information and a user session state;
and recording intermediate results required to be recorded in the execution process of the target method and the generated error reporting information.
Optionally, after writing the first type of operation log information and the second type of operation log information into a cache for storage and recording, the method further includes:
and according to a preset time period, regularly storing all the operation log information in the cache in the current time period into a database or a preset log file.
Optionally, the method further includes:
receiving a query request aiming at the operation log information, and analyzing to obtain a query keyword in the query request; the query keyword comprises a method name, a method type, recording time and user information;
and searching in the database or the preset log file according to the query keyword, and returning a corresponding query result to the initiator of the query request.
To achieve the above object, the present application provides an AOP-based oplogging system, including:
the method comprises a method determining module, a target method determining module and a target method determining module, wherein the method determining module is used for determining the target method to be called in an operation request after receiving the operation request sent by a user terminal; the target method is enhanced based on AOP in advance;
the first recording module is used for recording first type of operation log information needing to be recorded when the target method is executed; wherein the first type of operation log information comprises information in the execution process of the target method;
the second recording module is used for recording second type operation log information to be recorded after the target method is called; wherein the second type of operation log information includes an execution result of the target method;
and the information caching module is used for writing the first type of operation log information and the second type of operation log information into a cache for storage and recording.
Optionally, the first recording module includes:
a request recording unit configured to record request-related information of the operation request when the target method is executed; the request related information comprises a user IP address, user identity information and a user session state;
and the process recording unit is used for recording the intermediate result required to be recorded in the execution process of the target method and the generated error reporting information.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of any of the AOP-based oplogging methods disclosed in the foregoing when executing said computer program.
To achieve the above object, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the AOP-based oplogging methods disclosed in the foregoing.
According to the scheme, the method for recording the operation log based on the AOP comprises the following steps: after receiving an operation request sent by a user terminal, determining a target method to be called in the operation request; the target method is enhanced based on AOP in advance; when the target method is executed, recording first type operation log information needing to be recorded; wherein the first type of operation log information comprises information in the execution process of the target method; after the target method is called, recording second type operation log information needing to be recorded; wherein the second type of operation log information includes an execution result of the target method; and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording. According to the method and the system, the method needing to be called in the operation is used as a tangent point in advance through the AOP, after the user operation request is intercepted, the execution process of the target method and the operation information of the execution result can be recorded, omission and perception of the user can be avoided, and the method and the system can be inquired and traced when the operation information is needed subsequently, so that the system management is realized, and the troubleshooting is convenient.
The application also discloses an AOP-based operation log recording system, an electronic device and a computer-readable storage medium, which can also achieve the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an AOP-based method for logging operations according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of an AOP-based operation logging system according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 4 is a block diagram of another electronic device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an AOP-based operation log recording method disclosed in an embodiment of the present application includes:
s101: after receiving an operation request sent by a user terminal, determining a target method to be called in the operation request; the target method is enhanced based on AOP in advance;
in the embodiment of the application, after an operation request sent by a user terminal is received, a target method required to be called in the operation request is determined first. The target method is enhanced in advance based on AOP (aspect oriented programming), and AOP (aspect oriented programming) can realize a technology for dynamically and uniformly adding functions to a program under the condition of not modifying a source code through a pre-compiling mode and a running-period dynamic agent, and is widely applied to application development. Generally, in a plurality of service classes of a certain application, codes of non-service logic exist, such as log recording, performance monitoring, physical management, access control and the like. These non-business logic code scattered in multiple classes are often referred to as crosscut concerns, a common place for traditional AOPs. Augmentation refers to a piece of program code implanted at the target method attachment point.
It is to be understood that for the purposes of the embodiments of the present application, the class of operation information that needs to be recorded may be defined first before receiving the operation request. Specifically, a predefined target class for recording operation information may be acquired. Using the target-class unified operation information format, the content of the operation information may include, but is not limited to, a user address, an operation time, an operation result, error information, and the like.
In addition, it is necessary to select an AOP tangent point and an object method in advance, and to use a method in which operation information needs to be recorded when a program is executed as the tangent point and the object method. Specifically, a predefined target method may be obtained; the target method includes, but is not limited to, a method for modifying data information, a method for querying data information, and a method for calling a method in a system.
S102: when the target method is executed, recording first type operation log information needing to be recorded; wherein the first type of operation log information comprises information in the execution process of the target method;
in this step, when the operation request is intercepted and the target method is executed, the first kind of operation log information including the execution process of the target method, which needs to be recorded, may be recorded. In a specific implementation, the process may include: when the target method is executed, recording request related information of the operation request; the request related information comprises a user IP address, user identity information and a user session state; and recording intermediate results required to be recorded in the execution process of the target method and the generated error reporting information.
S103: after the target method is called, recording second type operation log information needing to be recorded; wherein the second type of operation log information includes an execution result of the target method;
it should be noted that, after the target method call is completed, the second type operation log information including the execution result of the target method, which needs to be recorded, may be recorded.
As a feasible implementation manner, under the implementation scenario that a target class is defined in advance, in the information recording process, the first class of operation log information that needs to be recorded may be written into the corresponding target class when the target method is executed in the embodiment of the present application; and after the target method is called, writing the second type operation log information to be recorded into the corresponding target type.
S104: and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording.
It is understood that after the first type operation log information and the second type operation log information are recorded, the information can be written into a cache for storage and recording. In an implementation scenario of writing various types of information into corresponding target classes, the target class entities including the operation log information may be written into a cache for storage and recording.
In a preferred embodiment, after the first type of operation log information and the second type of operation log information are written into the cache for storage and recording, all the operation log information in the cache within the current time period may be stored into the database or a preset log file at regular time according to a preset time period.
Further, the embodiment of the application can provide a corresponding query function besides recording the operation log information. Specifically, a query request for operation log information can be received, and query keywords in the query request are obtained through analysis; the query keyword comprises a method name, a method type, recording time and user information; and searching in the database or the preset log file according to the query keyword, and returning a corresponding query result to the initiator of the query request. By providing the query function, the information can be traced back and queried after the information is recorded.
According to the scheme, the method for recording the operation log based on the AOP comprises the following steps: after receiving an operation request sent by a user terminal, determining a target method to be called in the operation request; the target method is enhanced based on AOP in advance; when the target method is executed, recording first type operation log information needing to be recorded; wherein the first type of operation log information comprises information in the execution process of the target method; after the target method is called, recording second type operation log information needing to be recorded; wherein the second type of operation log information includes an execution result of the target method; and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording. According to the method and the system, the method needing to be called in the operation is used as a tangent point in advance through the AOP, after the user operation request is intercepted, the execution process of the target method and the operation information of the execution result can be recorded, omission and perception of the user can be avoided, and the method and the system can be inquired and traced when the operation information is needed subsequently, so that the system management is realized, and the troubleshooting is convenient.
The AOP-based operation log recording method provided by the embodiment of the present application is described below by a specific implementation scenario. Specifically, the present embodiment may specifically include the following processes:
the first step is as follows: defining classes of operation information to be recorded: with this type of unified operation information format, the content of the operation information may include, but is not limited to, a user address, an operation time, an operation result, error information, and the like.
The second step is that: selecting an AOP tangent point and a target method: the method of recording operation information required when the program is executed is taken as a tangent point and a target method. The content of the target method may include, but is not limited to: modifying data information, inquiring data information, calling methods in the system and the like.
The third step: receiving an operation request of a user, and executing a target method: the target method is an autonomously developed method, in particular for performing an operation. In the process of executing the operation, the required operation log information may be recorded into the class entity defined in the first step, including but not limited to: recording the received request related information in the corresponding class entity; and recording intermediate results, error reporting information and the like which need to be recorded in the execution process of the target method in the corresponding class entity.
The fourth step: carrying out post-enhancement on the target method: and taking the method selected in the second step as a target method, and performing post-enhancement of the AOP after the target method is called. Post-enhanced content may include, but is not limited to: recording the result of the target method execution in the third step in the class entity defined in the first step, recording error information and the like generated in the target method execution process in the third step in the class entity defined in the first step, and recording the intermediate result generated by the target method in the third step in the class entity defined in the first step, for example: the relevant user IP address, user identity information, user session state and the like in the user sending request can be processed and obtained and recorded in the class entity defined in the first step. The post enhancement is also a method developed autonomously in the embodiment, and is specifically used for recording operation information.
The fifth step: and storing the class entity in the first step which already contains the operation information into a cache.
And a sixth step: and calling the timing task, storing all operation information entities in the cache in one timing task period in batch, and storing the operation information entities in a database, a file or other systems.
In the embodiment of the application, the information is omitted and the user does not sense based on the AOP interception request, the operation information needing to be recorded in the system can be saved, follow-up inquiry and tracing can be realized, in addition, the operation information can be inserted in batches by using the timing task, the influence on a main program is small, and the occupied resources are few.
In the following, an AOP-based oplogging system provided by an embodiment of the present application is introduced, and an AOP-based oplogging system described below and an AOP-based oplogging method described above may be referred to each other.
Referring to fig. 2, an AOP-based operation logging system according to an embodiment of the present disclosure includes:
the method comprises a method determining module 201, configured to determine, after receiving an operation request sent by a user terminal, a target method to be called in the operation request; the target method is enhanced based on AOP in advance;
a first recording module 202, configured to record first type operation log information to be recorded when the target method is executed; wherein the first type of operation log information comprises information in the execution process of the target method;
the second recording module 203 is configured to record second type operation log information to be recorded after the target method is called; wherein the second type of operation log information includes an execution result of the target method;
the information caching module 204 is configured to write the first type of operation log information and the second type of operation log information into a cache for storage and recording.
For the specific implementation of the above modules 201 to 204, reference may be made to the corresponding disclosure of the foregoing embodiments, and no further description is provided herein.
On the basis of the foregoing embodiment, as a preferred implementation manner, the first recording module 202 provided in the embodiment of the present application may specifically include:
a request recording unit configured to record request-related information of the operation request when the target method is executed; the request related information comprises a user IP address, user identity information and a user session state;
and the process recording unit is used for recording the intermediate result required to be recorded in the execution process of the target method and the generated error reporting information.
The present application further provides an electronic device, and as shown in fig. 3, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and provides computing and controlling capability for the electronic device, and when executing the computer program stored in the memory 100, the AOP-based operation logging method disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 4, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While FIG. 4 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of the electronic device, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium has stored thereon a computer program which, when executed by a processor, implements the AOP-based oplogging method disclosed in any of the foregoing embodiments.
The method to be called in the operation is used as a tangent point in advance through the AOP, after the user operation request is intercepted, the method can record the operation information of the target method execution process and the execution result, omission and perception of the user can be avoided, and the method can be inquired and traced when the operation information is needed subsequently, so that the management of the system is realized, and troubleshooting is facilitated.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. An AOP-based operation logging method is characterized by comprising the following steps:
after receiving an operation request sent by a user terminal, determining a target method to be called in the operation request; the target method is enhanced based on AOP in advance;
when the target method is executed, recording first type operation log information needing to be recorded; wherein the first type of operation log information comprises information in the execution process of the target method;
after the target method is called, recording second type operation log information needing to be recorded; wherein the second type of operation log information includes an execution result of the target method;
and writing the first type of operation log information and the second type of operation log information into a cache for storage and recording.
2. The operation logging method of claim 1, further comprising, before receiving the operation request:
acquiring a predefined target class, wherein the target class is used for recording operation information;
correspondingly, when the target method is executed, the first type of operation log information needing to be recorded is recorded; after the target method is called, recording second type operation log information needing to be recorded; the writing the first type of operation log information and the second type of operation log information into a cache for storage and recording includes:
when the target method is executed, writing first-class operation log information needing to be recorded into a corresponding target class;
after the target method is called, writing second type operation log information needing to be recorded into a corresponding target type;
and writing the target class entity comprising the operation log information into a cache for storage and recording.
3. The operation logging method of claim 1, further comprising, before receiving the operation request:
acquiring a predefined target method; the target method comprises a method for modifying data information, a method for inquiring data information and a method for calling a method in the system.
4. The oplogging method of claim 1, wherein the logging the first type of oplog information to be logged when executing the target method comprises:
when the target method is executed, recording request related information of the operation request; the request related information comprises a user IP address, user identity information and a user session state;
and recording intermediate results required to be recorded in the execution process of the target method and the generated error reporting information.
5. The operation log recording method according to any one of claims 1 to 4, wherein after the writing of the first type of operation log information and the second type of operation log information into a cache for storage recording, the method further comprises:
and according to a preset time period, regularly storing all the operation log information in the cache in the current time period into a database or a preset log file.
6. The operation logging method of claim 5, further comprising:
receiving a query request aiming at the operation log information, and analyzing to obtain a query keyword in the query request; the query keyword comprises a method name, a method type, recording time and user information;
and searching in the database or the preset log file according to the query keyword, and returning a corresponding query result to the initiator of the query request.
7. An AOP-based oplogging system, comprising:
the method comprises a method determining module, a target method determining module and a target method determining module, wherein the method determining module is used for determining the target method to be called in an operation request after receiving the operation request sent by a user terminal; the target method is enhanced based on AOP in advance;
the first recording module is used for recording first type of operation log information needing to be recorded when the target method is executed; wherein the first type of operation log information comprises information in the execution process of the target method;
the second recording module is used for recording second type operation log information to be recorded after the target method is called; wherein the second type of operation log information includes an execution result of the target method;
and the information caching module is used for writing the first type of operation log information and the second type of operation log information into a cache for storage and recording.
8. The oplogging system of claim 7 wherein said first logging module comprises:
a request recording unit configured to record request-related information of the operation request when the target method is executed; the request related information comprises a user IP address, user identity information and a user session state;
and the process recording unit is used for recording the intermediate result required to be recorded in the execution process of the target method and the generated error reporting information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the AOP based oplogging method of any one of claims 1 to 6 when executing the computer program.
10. A computer readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the AOP-based oplogging method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011377472.0A CN112346949A (en) | 2020-11-30 | 2020-11-30 | AOP-based operation log recording method and system, electronic device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011377472.0A CN112346949A (en) | 2020-11-30 | 2020-11-30 | AOP-based operation log recording method and system, electronic device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112346949A true CN112346949A (en) | 2021-02-09 |
Family
ID=74366079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011377472.0A Pending CN112346949A (en) | 2020-11-30 | 2020-11-30 | AOP-based operation log recording method and system, electronic device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112346949A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858466A (en) * | 2023-02-07 | 2023-03-28 | 广州市千钧网络科技有限公司 | Operation log generation method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649061A (en) * | 2015-11-04 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method and device for recording user's operation log in web system |
CN110134658A (en) * | 2019-04-09 | 2019-08-16 | 平安科技(深圳)有限公司 | Log monitoring method, device, computer equipment and storage medium |
CN111708749A (en) * | 2020-07-24 | 2020-09-25 | 深圳市富之富信息科技有限公司 | Operation log recording method and device, computer equipment and storage medium |
-
2020
- 2020-11-30 CN CN202011377472.0A patent/CN112346949A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649061A (en) * | 2015-11-04 | 2017-05-10 | 阿里巴巴集团控股有限公司 | Method and device for recording user's operation log in web system |
CN110134658A (en) * | 2019-04-09 | 2019-08-16 | 平安科技(深圳)有限公司 | Log monitoring method, device, computer equipment and storage medium |
CN111708749A (en) * | 2020-07-24 | 2020-09-25 | 深圳市富之富信息科技有限公司 | Operation log recording method and device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115858466A (en) * | 2023-02-07 | 2023-03-28 | 广州市千钧网络科技有限公司 | Operation log generation method, device, equipment and medium |
CN115858466B (en) * | 2023-02-07 | 2023-06-09 | 广州市千钧网络科技有限公司 | Operation log generation method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582303B (en) | General component calling method, device, computer equipment and storage medium | |
US10019496B2 (en) | Processing of performance data and log data from an information technology environment by using diverse data stores | |
US11538046B2 (en) | Page data acquisition method, apparatus, server, electronic device and computer readable medium | |
US10225136B2 (en) | Processing of log data and performance data obtained via an application programming interface (API) | |
CN108197200B (en) | Log tracking method and device, computer equipment and storage medium | |
US20170169134A1 (en) | Gui-triggered processing of performance data and log data from an information technology environment | |
US20170255683A1 (en) | Processing of Performance Data and Structure Data by Thresholding Log Data | |
JP2018528559A (en) | Method and system for realizing data tracking by software development kit | |
US10015253B2 (en) | System and method for preemptive request processing | |
CN108228322B (en) | Distributed link tracking and analyzing method, server and global scheduler | |
CN112612988A (en) | Page processing method and device, computer equipment and storage medium | |
US10509641B2 (en) | Optimizing feature deployment based on usage pattern | |
CN111177113A (en) | Data migration method and device, computer equipment and storage medium | |
CN111309991B (en) | Query statement generation method and device and data query method and system | |
CN111586177B (en) | Cluster session loss prevention method and system | |
CN104298675A (en) | Method and device for cache management | |
CN111047434B (en) | Operation record generation method and device, computer equipment and storage medium | |
CN111885184A (en) | Method and device for processing hot spot access keywords in high concurrency scene | |
CN110222046B (en) | List data processing method, device, server and storage medium | |
CN112346949A (en) | AOP-based operation log recording method and system, electronic device and medium | |
CN111797025B (en) | Application-oriented data processing method and device | |
CN112434037A (en) | Data processing method, processing device, data processing apparatus, and storage medium | |
CN110674426B (en) | Webpage behavior reporting method and device | |
CN110347546B (en) | Dynamic adjustment method, device, medium and electronic equipment for monitoring task | |
US12001458B2 (en) | Multi-cloud object store access |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210209 |