Log data verification method and device, electronic equipment, storage medium and product

By generating pseudocode to automate the recording and verification of log data, the problem of high human resource investment in smart terminal applications is solved, and the efficiency of log data verification and business statistics is improved.

CN115454800BActive Publication Date: 2026-02-10BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211133269.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-17
Publication Date
2026-02-10
Estimated Expiration
2042-09-17

AI Technical Summary

Technical Problem

The acquisition and verification of log data in smart terminal applications involves high human resource investment, significant communication and verification costs, resulting in low efficiency in R&D and business statistics.

Method used

By generating pseudocode to automate the recording and verification of log data, the cost of manual communication and verification is reduced, and efficiency is improved.

Benefits of technology

It enables automated verification of log data, reduces communication and verification costs, and improves the efficiency of R&D and business statistics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115454800B_ABST
    Figure CN115454800B_ABST
Patent Text Reader

Abstract

The present disclosure provides a log data verification method and device, electronic equipment, storage medium and product, relates to the field of automation, in particular to the field of data processing. The specific implementation scheme is: obtaining parameters for log point of a target application; generating pseudo code from the parameters, the pseudo code being used for recording log data by a client; and verifying the log data in response to receiving the log data sent by the client. The present disclosure can save the cost of log data verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of automation technology, and more particularly to the field of data processing technology, specifically to a log data verification method, apparatus, electronic device, storage medium, and product. Background Technology

[0002] Smart terminals involve numerous applications that provide various services. To understand the usage of each application, relevant data can be acquired. This data acquisition can be achieved through logging and statistical analysis.

[0003] Implementing log tracking and statistics requires relatively high human resource investment and statistics-related resource investment. Summary of the Invention

[0004] This disclosure provides a log data verification method, apparatus, electronic device, storage medium, and product.

[0005] According to a first aspect of this disclosure, a log data verification method is provided, the method comprising:

[0006] Obtain parameters for logging the target application; generate pseudocode from the parameters, which is used by the client to record log data; and verify the log data in response to receiving log data sent by the client.

[0007] According to a second aspect of this disclosure, a log data verification apparatus is provided, the apparatus comprising:

[0008] The module is configured to acquire parameters for logging the target application; the module is configured to generate pseudocode from the parameters, which is used by the client to record log data; and the module is configured to verify the log data received from the client.

[0009] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0010] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.

[0011] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method according to the first aspect.

[0012] According to a fifth aspect of this disclosure, a computer product is provided, including a computer program that, when executed by a processor, implements the method according to the first aspect.

[0013] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0014] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0015] Figure 1 This is a schematic diagram of the application environment based on this disclosure;

[0016] Figure 2 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown.

[0017] Figure 3 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown.

[0018] Figure 4 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown.

[0019] Figure 5 A schematic diagram of the structure of a log data verification device provided in an embodiment of this disclosure is shown;

[0020] Figure 6 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation

[0021] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0022] With the widespread adoption of the internet and the increase in smart terminals, these terminals are connected to numerous applications that provide various services. To understand the usage of each application, relevant data can be obtained. This data can be acquired through logging and statistical analysis. For example, this can involve tracking unique visitors (UV), page views (PV), or clicks for each application.

[0023] Statistical functions serve as a fundamental capability for every product line. In the daily R&D process, statistical work has also become a human resource investment for R&D personnel, and the investment in statistics-related resources is relatively high.

[0024] For example, in terms of communication, statistical work is mainly carried out by product staff who submit requirements to R&D staff. Product staff focus on statistical goals, while R&D staff focus on specific implementation. From the goal to the implementation process, multiple communications are required to determine the final implementation effect.

[0025] In terms of research and development: Each statistical function has different location information, which contains many related parameters. Depending on the location requirements, there can be hundreds of parameters. Moreover, these parameters are implemented in multiple versions over a long period of time, which involves the learning and maintenance costs for R&D personnel.

[0026] In terms of validation: For R&D personnel, due to the magnitude of the fields, the debugging process is mainly done manually to determine whether the parameter fields have been successfully marked and to verify the validity and integrity of the fields, which is costly.

[0027] In summary, in related technologies, using the point-tracking capability within the application requires business personnel to record point locations, manually write code, and report recorded log data for verification. This increases communication costs, and the implementation and verification costs are relatively high.

[0028] Based on the issues raised in the above embodiments, this disclosure provides a log data verification method and apparatus. By generating pseudocode from parameters set by business personnel, communication costs for staff are reduced. Obtaining application-tracked log data based on the pseudocode reduces implementation costs, automatically verifies the validity and integrity of the data, and further reduces verification costs.

[0029] The log data verification method provided in this application can be applied to, for example... Figure 1In the application environment shown, terminal 101 communicates with server 102 via a network. Terminal 101 is the client in this disclosure, used to record log data and report it to server 102. Server 102 is used to generate pseudocode and verify the validity and integrity of the data. Terminal 101 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, and server 102 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0030] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0031] Figure 2 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown, as follows: Figure 2 As shown, this method can be applied to the server side, including:

[0032] In step S210, parameters for logging the target application are obtained.

[0033] In this embodiment of the disclosure, a point management system can be provided for the application, and parameter restrictions are set for each point, such as the parameter name to be set and the parameter value standard.

[0034] In this disclosure, for a target application, the points where log entries need to be made are determined, thereby determining the parameters required for those points. There can be one or more points.

[0035] Furthermore, in response to the detection of the setting parameter operation, the parameters used for logging the target application are obtained.

[0036] In step S220, pseudocode is generated for the parameters.

[0037] The pseudocode is used by the client to record log data.

[0038] In this embodiment of the disclosure, the server can generate pseudocode from the parameters set by the staff for subsequent research and development.

[0039] The client can receive pseudocode sent by the server, input the received pseudocode into a specified device, and then obtain log data based on the generated pseudocode.

[0040] In step S230, in response to receiving log data sent by the client, the log data is verified.

[0041] In this embodiment, the client determines business requirements based on parameters in the pseudocode. Then, based on these requirements, it calculates the parameter values ​​at each location, records the log data generated at each location, and stores it in a designated data item. The recorded log data is subsequently sent to the server.

[0042] Once the server confirms that it has received the log data sent by the client, it can verify the received log data to determine the verification result.

[0043] The log data verification method provided in this disclosure saves on human communication costs by generating pseudocode from the set parameters. Automated log verification can quickly identify problems in log data, thereby improving verification efficiency.

[0044] In this embodiment of the disclosure, the parameters required for logging the target application can be customized by staff. For example, staff may need the log data for further processing. Therefore, when the server detects the parameter setting operation, it can obtain the parameters used for logging the target application.

[0045] In this disclosure, the acquired parameters can also be used to generate pseudocode for subsequent steps. The implementation method for generating pseudocode from the parameters is as follows.

[0046] Figure 3 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown, as follows: Figure 3 As shown, this method can be applied to the server side, including:

[0047] In step S310, the point keywords, point value standards, and the relationship between the point keywords included in the parameters are determined.

[0048] In this disclosure, for example, to determine the factors affecting the loading speed of a webpage, the location keyword can be set to time, the location value standard can be the start and end times of webpage loading, and the network type can be set, such as mobile network or Wi-Fi. Geographic location information, client device model, etc., can also be set.

[0049] Furthermore, the parameters obtained for logging the target application at each point can include point keywords, point value criteria, and relationships between point keywords. The relationships between point keywords can be hierarchical.

[0050] In step S320, pseudocode for the R&D language is generated by combining the point keywords, point value standards, and the relationship between the point keywords.

[0051] In this embodiment of the disclosure, pseudocode for the development language is generated based on the location keywords, location value standards, and the relationship between the location keywords. The development language can be, but is not limited to, C, C++, JAVA, Objective-C (OC), Swift, Kotlin, etc.

[0052] In this embodiment of the disclosure, received log data can be verified to determine its validity and completeness. The following embodiments will describe the verification of log data in response to receiving log data sent by a client.

[0053] Figure 4 A flowchart illustrating a log data verification method provided in an embodiment of this disclosure is shown, as follows: Figure 4 As shown, this method can be applied to the server side, including:

[0054] In step S410, the client is associated based on a preset association method.

[0055] In this embodiment of the disclosure, the server can be associated with the target terminal, or connected to the terminal through an entry point on the server side that allows for debugging log data. The association process can be based on a QR code.

[0056] In step S420, the client association is completed, and log data sent by the client is received based on the preset data entry point.

[0057] In this embodiment of the disclosure, after successfully associating with the client to be connected, log data sent by the client can be received according to the entry point for the ability to debug log data.

[0058] In step S430, in response to receiving log data sent by the client, the log data is parsed to obtain the variable names and their corresponding variable values, and the corresponding entry data is updated according to the variable names corresponding to the variable values.

[0059] In step S440, the integrity of the log data and the validity of the log data values ​​are verified to obtain the integrity verification result and the validity verification result.

[0060] Furthermore, upon receiving log data, the variable names and their corresponding values ​​are parsed. The corresponding entry data is then updated according to the parsed variable names.

[0061] For example, if the variable is time, then the corresponding rule could be to obtain the start time and the end time.

[0062] In this embodiment of the disclosure, the integrity of the received log data and the validity of the values ​​in the log data can be verified. The integrity verification result and the validity verification result of the received log data are obtained.

[0063] In step S450, the integrity verification result and the value validity verification result are sent to the client.

[0064] In this embodiment of the disclosure, the server obtains the integrity verification result and the value validity verification result of the log data, and can send them to the client.

[0065] In this disclosure, the integrity verification results and the value validity verification results can be displayed to users. These users can be either users of the client application or staff members who developed the application.

[0066] In some embodiments of this disclosure, in response to determining that the integrity verification result is a missing result, the client is prompted with the name of the missing data.

[0067] For example, parameters include Uniform Resource Locator (URL), size, and load status (isLoadS).

[0068] A URL is a concise representation of the location and access method of a resource that can be obtained from the Internet; it is the address of a standard resource on the Internet.

[0069] After verification, if the log data contains the URL but not size and isLoadS, the user can be prompted that size and isLoadS are missing.

[0070] In other embodiments of this disclosure, in response to determining that there is data with an empty field, the client is prompted with the name of the abnormal log data.

[0071] For example, if the field in the URL parameter upload is empty, it is determined that the log data uploaded via the URL is invalid and is abnormal log data. In this case, the client is prompted that the URL is abnormal and invalid.

[0072] In some embodiments of this disclosure, the log data of newly added locations in the application can also be displayed separately.

[0073] In this disclosure, a new logging point can be a point where the application version where the current log data resides differs from the application version where the previous log data resided. For example, the current application version is an updated version.

[0074] For example, if the URL is a newly added field in the new version, then the log data uploaded via the URL is determined to be invalid and is considered abnormal log data. In this case, the client will be notified separately that the URL is abnormal and invalid.

[0075] The following embodiments illustrate the log data verification method provided in this disclosure.

[0076] For example, the parameters used by the server to log the target application include URL, size, and isLoadS.

[0077] The URL can be the URL of a webpage, which is a string type that cannot be empty and can be up to 1024 bytes in length.

[0078] Size can be the size of the webpage, and it is an integer type.

[0079] isLoadS determines whether the load was successfully loaded; it is a boolean type.

[0080] The server can further generate corresponding pseudocode based on the configured parameters. For example, char url

[1024] ; / / The URL of the webpage, which cannot be empty and has a length not exceeding 1024 bytes. int size; / / The size of the webpage. boolisLoadS; / / Whether loading was successful.

[0081] The client uses the generated pseudocode as the output of the data storage component. Here, variable names serve as the keys for the uploaded data, and the values ​​are the corresponding values.

[0082] The server receives data, parses the key and value, and updates the corresponding entry data according to the key value.

[0083] Researchers operate the server and enter debug mode. Two implementation methods can be used to connect devices.

[0084] One implementation involves inputting a device ID, and the system automatically filters the reported data for that device ID and routes it to the current debug mode.

[0085] Another approach is to modify the request parameters. A unique ID is generated during this debugging process, and the client sends this parameter when reporting data.

[0086] Furthermore, the system can provide the ability to automatically set unique IDs. For example, the server provides a QR code that stores data such as setparamid:xxxx. After the client scans the code, it parses the command, sets the parameters, and carries these parameters during the communication process.

[0087] The server can then perform data verification.

[0088] For example, integrity checks: if only the URL is uploaded, the system will report missing values ​​for size and isLoadS.

[0089] Validation: For example, if a field uploaded in the URL is empty, the system will prompt that the URL is invalid.

[0090] The new version's points are explained separately: for example, the URL is a newly added field in the new version. If an exception occurs, a separate prompt can be made, such as different prompt content, different prompt method, and different prompt area.

[0091] This disclosure achieves automatic generation of data layer code and rapid debugging and verification capabilities, enabling developers to quickly identify completeness and validity issues. It also provides separate prompts for newly added fields in new versions. This reduces development costs for developers, and for product personnel, the data layer is abstracted and encapsulated during the requirement submission process, reducing communication costs. Parameter reporting based on data points can also be verified in advance during the product design phase. In summary, it improves the development efficiency of business statistics. Based on... Figure 2 The method shown follows the same principle. Figure 5 A schematic diagram of the structure of a log data verification device provided in an embodiment of this disclosure is shown, such as... Figure 5 As shown, the log data verification device 500 may include:

[0092] The acquisition module 501 is used to acquire parameters for logging the target application; the generation module 502 is used to generate pseudocode from the parameters, the pseudocode being used by the client to record log data; and the verification module 503 is used to verify the log data in response to receiving log data sent by the client.

[0093] In this embodiment of the disclosure, the acquisition module 501 is used to acquire parameters for logging the target application in response to the detection of parameter setting operation.

[0094] In this embodiment of the disclosure, the generation module 502 is used to determine the point keywords, point value standards, and the relationship between the point keywords included in the parameters; and to generate pseudocode of the R&D language by combining the point keywords, point value standards, and the relationship between the point keywords.

[0095] In this embodiment of the disclosure, the verification module 503 is used to associate a client based on a preset association method; after the client association is completed, it receives log data sent by the client based on a preset data entry point; in response to receiving the log data sent by the client, it parses the log data to obtain variable names and their corresponding variable values, and updates the corresponding entry data according to the variable names corresponding to the variable values; it verifies the integrity of the entry data and the validity of the log data values ​​to obtain integrity verification results and value validity verification results; and it sends the integrity verification results and value validity verification results to the client.

[0096] In this embodiment of the present disclosure, the device further includes: a prompting module 504;

[0097] The prompting module is used to prompt the client with the name of the missing log data in response to the determination that the integrity verification result is missing.

[0098] In this embodiment of the present disclosure, the device further includes: a prompting module 504;

[0099] The prompting module is used to prompt the client with the name of the abnormal log data in response to the determination that there is data with an empty field.

[0100] In this embodiment of the disclosure, the prompting module 504 is further configured to, in response to determining that the data with an empty field is newly added log data, separately prompt the client with the name of the abnormal log data.

[0101] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0102] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0103] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0104] like Figure 6 As shown, device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 602 or a computer program loaded from storage unit 608 into random access memory (RAM) 603. RAM 603 may also store various programs and data required for the operation of device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0105] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of monitors, speakers, etc.; storage unit 608, such as disk, optical disk, etc.; and communication unit 609, such as network card, modem, wireless transceiver, etc. Communication unit 609 allows device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0106] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the log data verification method. For example, in some embodiments, the log data verification method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the log data verification method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the log data verification method by any other suitable means (e.g., by means of firmware).

[0107] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0109] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0111] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0112] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0113] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0114] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A log data verification method, the method comprising: Obtain the parameters used for logging the target application; The parameters are used to generate pseudocode, which is used by the client to record log data. In response to receiving log data sent by the client, the log data is verified; The step of generating pseudocode from the parameters includes: Determine the point keywords, point value standards, and the relationship between the point keywords included in the parameters; The pseudocode of the R&D language is generated by taking the location keywords, the location value standards, and the relationship between the location keywords.

2. The method according to claim 1, wherein, The step of obtaining the parameters used for logging the target application includes: In response to the detected parameter setting operation, obtain the parameters used for logging the target application.

3. The method according to claim 1, wherein, The step of verifying the log data received from the client includes: Clients are associated based on preset association methods; Once the client association is complete, log data sent by the client is received based on the preset data entry point; In response to receiving log data sent by the client, the log data is parsed to obtain the variable name and its corresponding variable value, and the corresponding entry data is updated according to the variable name corresponding to the variable value; The integrity of the entry data and the validity of the log data values ​​are verified to obtain the integrity verification result and the validity verification result. The integrity verification result and the value validity verification result are sent to the client.

4. The method according to claim 3, wherein, The method further includes: In response to the determination that the integrity verification result is missing, the client is prompted with the name of the missing log data.

5. The method according to claim 3, wherein, The method further includes: In response to the determination that there is data with an empty field, the name of the abnormal log data is displayed to the client.

6. The method according to claim 5, wherein, The response to determining that there is data with an empty field prompts the client with the name of the abnormal data, including: In response to the determination that the data with an empty field is newly added log data, the name of the abnormal log data is displayed separately to the client.

7. A log data verification device, the device comprising: The acquisition module is used to obtain parameters for logging the target application. A generation module is used to generate pseudocode from the parameters, and the pseudocode is used by the client to record log data. The verification module is used to verify the log data received from the client. The generation module is used for: Determine the point keywords, point value standards, and the relationship between the point keywords included in the parameters; The pseudocode of the R&D language is generated by taking the location keywords, the location value standards, and the relationship between the location keywords.

8. The apparatus according to claim 7, wherein, The acquisition module is used for: In response to the detected parameter setting operation, obtain the parameters used for logging the target application.

9. The apparatus according to claim 7, wherein, The verification module is used for: Clients are associated based on preset association methods; Once the client association is complete, log data sent by the client is received based on the preset data entry point; In response to receiving log data sent by the client, the log data is parsed to obtain the variable name and its corresponding variable value, and the corresponding entry data is updated according to the variable name corresponding to the variable value; The integrity of the entry data and the validity of the log data values ​​are verified to obtain the integrity verification result and the validity verification result. The integrity verification result and the value validity verification result are sent to the client.

10. The apparatus according to claim 9, wherein, The device further includes: a prompting module; The prompting module is used to prompt the client with the name of the missing log data in response to the determination that the integrity verification result is missing.

11. The apparatus according to claim 9, wherein, The device further includes: a prompting module; The prompting module is used to prompt the client with the name of the abnormal log data in response to the determination that there is data with an empty field.

12. The apparatus according to claim 11, wherein, The prompting module is also used for: In response to the determination that the data with an empty field is newly added log data, the name of the abnormal log data is displayed separately to the client.

13. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

15. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Log-based testing method, device and computer system

    CA3141546A1

  • Log dotting processing method

    CN113722217A