CN111797017B - Method, device, test equipment and storage medium for storing log - Google Patents

Method, device, test equipment and storage medium for storing log Download PDF

Info

Publication number
CN111797017B
CN111797017B CN202010619591.6A CN202010619591A CN111797017B CN 111797017 B CN111797017 B CN 111797017B CN 202010619591 A CN202010619591 A CN 202010619591A CN 111797017 B CN111797017 B CN 111797017B
Authority
CN
China
Prior art keywords
log
specified duration
duration threshold
acquired
label
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.)
Active
Application number
CN202010619591.6A
Other languages
Chinese (zh)
Other versions
CN111797017A (en
Inventor
刘昱良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202010619591.6A priority Critical patent/CN111797017B/en
Publication of CN111797017A publication Critical patent/CN111797017A/en
Application granted granted Critical
Publication of CN111797017B publication Critical patent/CN111797017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses a method, a device, test equipment and a storage medium for storing logs, and belongs to the technical field of software testing. The method comprises the following steps: and acquiring logs in real time in the software testing process. And determining at least one of a label corresponding to the log in the specified time length threshold which is acquired currently and a label corresponding to the log in the specified time length threshold which is acquired last time when the log in the specified time length threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not. And responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold. Therefore, only logs useful for searching the problems of the software can be reserved, and the stored log quantity is reduced, so that the user can analyze and check the problems conveniently, and the problem solving efficiency is improved.

Description

Method, device, test equipment and storage medium for storing log
Technical Field
The embodiment of the application relates to the technical field of software testing, in particular to a method and a device for storing logs, testing equipment and a storage medium.
Background
The electronic equipment can be generally provided with a plurality of pieces of software, the software can generate logs in the running process, and the test equipment can find out problems in the software by analyzing the logs, so that technicians can solve the problems conveniently. In general, the test device may continuously obtain logs during the process of performing the software test, and store all the logs obtained during the process of performing the software test, and then the technician searches and analyzes the obtained logs through the keyword to determine whether there is a problem. However, the software test may take several days, in which case, a large number of logs may be obtained and stored at a time, and there may be logs in the logs that do not help the software test, which not only wastes the storage space of the test device, but also is unfavorable for the user to find and analyze the problem, thereby reducing the efficiency of solving the problem.
Disclosure of Invention
The embodiment of the application provides a method, a device, test equipment and a storage medium for storing logs, which can solve the problem of reducing the efficiency of solving the problem in the related art. The technical scheme is as follows:
In one aspect, a method for storing logs is provided and applied to test equipment, and the method comprises the following steps:
acquiring logs in real time in the software testing process;
determining at least one of a label corresponding to the log in the specified duration threshold which is acquired currently and a label corresponding to the log in the specified duration threshold which is acquired last time when the log in the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
And responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold.
In one possible implementation manner of the embodiment of the present application, before determining the label corresponding to the log in the currently acquired specified duration threshold after each log in the specified duration threshold is acquired, the method further includes:
if log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining a label corresponding to the log in the currently acquired specified duration threshold as a storage label.
In a possible implementation manner of the embodiment of the present application, the method further includes:
responding to the label corresponding to the log in the currently acquired specified duration threshold as a deletion label, and acquiring the label corresponding to the log in the last acquired specified duration threshold;
And deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
In one possible implementation manner of the embodiment of the present application, after each log within the specified duration threshold is obtained, the method further includes:
Generating a log identifier of a log in a specified time threshold which is acquired currently based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding specified time threshold;
And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
In one possible implementation manner of the embodiment of the present application, the deleting the log in the last acquired specified duration threshold includes:
Acquiring a log identifier of a log in the last acquired specified duration threshold from the temporary list to obtain a target log identifier;
And deleting the log stored corresponding to the target log identifier.
In another aspect, there is provided an apparatus for storing logs, for use in a test device, the apparatus comprising:
The acquisition module is used for acquiring logs in real time in the software testing process;
The determining module is used for determining at least one of a label corresponding to the log in the specified duration threshold which is acquired currently and a label corresponding to the log in the specified duration threshold which is acquired last time when the log in the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
The storage module is used for responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold.
In a possible implementation manner of the embodiment of the present application, the determining module is further configured to:
if log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining a label corresponding to the log in the currently acquired specified duration threshold as a storage label.
In a possible implementation manner of the embodiment of the present application, the storage module is further configured to:
responding to the label corresponding to the log in the currently acquired specified duration threshold as a deletion label, and acquiring the label corresponding to the log in the last acquired specified duration threshold;
And deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
In a possible implementation manner of the embodiment of the present application, the determining module is further configured to:
Generating a log identifier of a log in a specified time threshold which is acquired currently based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding specified time threshold;
And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
In one possible implementation manner of the embodiment of the present application, the determining module is configured to:
Acquiring a log identifier of a log in the last acquired specified duration threshold from the temporary list to obtain a target log identifier;
And deleting the log stored corresponding to the target log identifier.
In another aspect, a test apparatus is provided, the test apparatus including a memory for storing a computer program and a processor for executing the computer program stored on the memory to implement the steps of the method for storing logs described above.
In another aspect, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor, implements the steps of the method of storing logs described above.
In another aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the method of storing logs described above.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
The test equipment can acquire logs in real time in the process of performing software test. Because the software test needs a long time, a large number of logs can be obtained, if the obtained logs are all stored, the storage space is wasted, and the difficulty of solving the problem is improved. Therefore, each time the log in the specified duration threshold is acquired, it can be determined whether to save the log in the specified duration threshold acquired last time and the log in the specified duration threshold acquired currently according to at least one of the label corresponding to the log in the specified duration threshold acquired currently and the label corresponding to the log in the specified duration threshold acquired last time. If the label corresponding to the log in the currently acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the currently acquired specified duration threshold, or the label corresponding to the log in the last acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the last acquired specified duration threshold, or the label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold are both save labels, and it may be considered that a log useful for searching for a software problem may exist in both the log in the last acquired specified duration threshold and the log in the currently acquired specified duration threshold. Therefore, it is necessary to store the log in the specified duration threshold value acquired at present and the log in the specified duration threshold value acquired last time. Therefore, every other specified time length threshold, whether the acquired log is stored or not is determined according to the label corresponding to the acquired log, invalid logs can be deleted, logs which are needed to be stored and are useful for searching the software problem are reserved, the stored log quantity is reduced, so that a user can analyze and check the problem conveniently, and further the problem solving efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment, shown in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of storing a log, according to an example embodiment;
FIG. 3 is a flowchart illustrating a method of storing a log according to another exemplary embodiment;
FIG. 4 is a schematic diagram illustrating an apparatus for storing logs according to an exemplary embodiment;
fig. 5 is a schematic diagram showing a structure of a test apparatus according to an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Before explaining the method for storing logs provided by the embodiment of the present application in detail, an implementation environment provided by the embodiment of the present application is described.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an implementation environment according to an exemplary embodiment. The implementation environment includes a test device 101 and an electronic device 102, the test device 101 being communicatively connectable to the electronic device 102. The communication connection may be a wired or wireless connection, which is not limited by the embodiments of the present application.
The test device 101 and the electronic device 102 may be any electronic product that can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, a voice interaction device, a handwriting device, and the like.
For example, the test device 101 may be a PC (Personal Computer ), a mobile phone, a smart phone, a PDA (Personal DIGITAL ASSISTANT ), a palm computer PPC (Pocket PC), a tablet computer, or the like.
For example, the electronic device 102 may be a PC, a mobile phone, a smart phone, a PDA, a wearable device, a palm computer PPC, a tablet computer, a smart car machine, a smart television, a smart sound box, etc.
As an example, the test device 101 may be a computer of a software tester, the electronic device 102 may be a terminal or a car device installed with an android system, and a plurality of software may be installed in the electronic device 102. The test device 101 and the electronic device 102 may establish a communication connection through a USB interface or through a connection to the same WiFi (WIRELESS FIDELITY ) network.
Those skilled in the art will appreciate that the above-described test device 101 and electronic device 102 are only examples, and that other test devices or electronic devices, either now present or later, may be employed in the present application and are intended to be within the scope of the present application and are incorporated herein by reference.
After the implementation environment provided by the embodiment of the present application is introduced, a method for storing logs provided by the embodiment of the present application is explained in detail below.
Fig. 2 is a flowchart illustrating a method of storing a log according to an exemplary embodiment, which is applied to the test apparatus shown in fig. 1 described above. Referring to fig. 2, the method may include the steps of:
step 201: and acquiring logs in real time in the software testing process.
In implementation, the test device and the electronic device may establish a communication connection, and the test device may detect a log generated by the electronic device by executing a script that needs to store a system log, and acquire the log generated by the electronic device in real time by executing a log acquisition script.
As an example, the script that needs to store the system log may be a software test script, and the test device detects the log generated by the electronic device during the software test by executing the software test script, and acquires the log generated by the electronic device in real time.
As an example, the log obtaining script may be adb logcat script, and the test device may obtain the log generated by the electronic device in real time by executing the adb logcat script.
It should be noted that, the test device executes the script that needs to save the system log and the execution log obtaining script are implemented by different processes, and the processes of executing the two scripts do not affect each other. And, the test equipment execution log acquisition script is continuously and circularly executed in the process of executing the script needing to save the system log.
Step 202: and determining at least one of a label corresponding to the log in the specified time length threshold which is acquired currently and a label corresponding to the log in the specified time length threshold which is acquired last time when the log in the specified time length threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not.
The specified duration threshold may be set by a user according to actual needs, or may be set by default by the test device, which is not limited in the embodiment of the present application. For example, the specified duration threshold may be 5 minutes or 10 minutes, and the set specified duration threshold may be different according to the project requirements.
As one example, the tags may include save tags or delete tags. The save tag indicates that a log useful for finding a problem of software exists in the corresponding log, and the corresponding log may be stored. The delete tag indicates that there is no log useful for finding a problem with the software in the corresponding log, and the corresponding log can be deleted. For example, a log useful for finding problems with software may be a log of anomalies.
In implementation, the test device can detect the log in the process of executing the script needing to save the system log, and can feed back information whether the log is helpful for searching the software problem. Thus, in some embodiments, each time a log within a specified duration threshold is obtained, before determining a label corresponding to the currently obtained log within the specified duration threshold, the method may further include: if log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining the label corresponding to the currently acquired log in the specified duration threshold as a storage label.
That is, if log abnormality information is received during the process of acquiring the log in the currently acquired specified duration threshold, it is stated that the log useful for finding the problem of the software exists in the currently acquired log in the specified duration threshold, and the log useful for finding the problem of the software can be used for analyzing the problem existing in the software by the user, so that the log in the currently acquired specified duration threshold is generally required to be stored, and further, the label corresponding to the currently acquired log in the specified duration threshold can be determined as the save label.
For example, in the process of acquiring the log within the currently acquired specified duration threshold, if the log useful for finding the problem of the software is detected by running the software test script, the script may return true, where true may be used to represent the abnormal information of the log.
For example, assuming that the specified duration threshold is 5 minutes, the test device continuously executes the software test script and the log obtaining script within the period of 12:00-12:05, if log abnormality information is received within the period of 12:00-12:05, which indicates that a log useful for searching for a problem of software exists in the log obtained within the period of 12:00-12:05, a label corresponding to the log obtained within the period of 12:00-12:05 can be determined as a save label.
As an example, if no log abnormality information is received during the process of acquiring the log in the currently acquired specified duration threshold, which indicates that no log useful for searching for a problem of software exists in the currently acquired log in the specified duration threshold, the currently acquired log in the specified duration threshold is hardly helpful to the problem existing in the user analysis software, and in order to reduce occupation of the storage space of the test device, the currently acquired log in the specified duration threshold may be deleted, so that a tag corresponding to the currently acquired log in the specified duration threshold may be determined as a delete tag.
In an implementation, after each log in the specified duration threshold is obtained, a log identifier of the log in the specified duration threshold obtained currently can be generated based on the current time point, where the log identifier is used for uniquely indicating the log in the corresponding specified duration threshold. And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
That is, after each log in the specified duration threshold is acquired, in order to distinguish the log in the specified duration threshold acquired each time, a log identification of the log in the specified duration threshold acquired currently may be generated based on the current time point, the log identification may be stored in correspondence with the log in the specified duration threshold acquired currently, and the log identification may be stored in the temporary list, so that the corresponding log may be acquired through the log identification.
As an example, based on the current point in time, a specific implementation of generating a log identification of a log within a currently acquired specified duration threshold may include: and determining the current time point as a log identification of the log in the currently acquired specified duration threshold. Or determining a time point based on the current time point and the specified duration threshold, and determining the determined time point as the log identification of the log in the currently acquired specified duration threshold.
For example, assuming that the current time point is 15 minutes and 10 seconds at 2019, 10 month, 17 day, 16, the log identification of the log within the currently acquired specified duration threshold may be determined to be 20191017-161510.Txt, and assuming that the specified duration threshold is 5 minutes, it may be determined that the log corresponding to the log identification 20191017-161510.Txt stores the log between 2019, 10 month, 17 day, 16, 10 minutes and 10 seconds and 2019, 10 month, 17 day, 16, 15 minutes and 10 seconds. Or based on 15 minutes 10 seconds at the current time point 2019, 10 months, 17 days, 16 and the specified duration threshold value 5 minutes, a time point 2019, 10 minutes 10 seconds at the time point 2019, 10 months, 17 days, 16 hours, can be determined, 20191017-161010.Txt can be determined as a log IDE log identifier in the currently acquired specified duration threshold value, and a log between 10 minutes 10 seconds at the time of 2019, 10 months, 17 days, 16 minutes 15 seconds can be determined to be stored in a log corresponding to the log identifier.
As an example, the log in the currently acquired specified duration threshold may be stored in the same folder, and the name of the folder is determined as the log identifier of the log in the currently acquired specified duration threshold, so that the log identifier may be stored correspondingly to the log in the currently acquired specified duration threshold.
It should be noted that, the log identifiers may also be stored in correspondence with the labels corresponding to the corresponding logs, and the correspondence between each log identifier and the label may be determined.
In the implementation, each time the log in the specified duration threshold is acquired, a label corresponding to the log in the specified duration threshold acquired currently, or a label corresponding to the log in the specified duration threshold acquired last time, or a label corresponding to the log in the specified duration threshold acquired currently and a label corresponding to the log in the specified duration threshold acquired last time may be acquired.
As an example, the label corresponding to the log in the currently acquired specified duration threshold may be acquired according to the log identifier of the currently acquired log in the specified duration threshold and the corresponding relation between each log identifier and the label. Similarly, the label corresponding to the log in the last acquired specified duration threshold can be acquired according to the log identification of the log in the last acquired specified duration threshold and the corresponding relation between each log identification and the label.
As an example, if the log identifier included in the temporary list is a time point, the log identifier closest to the current time point may be determined as the log identifier of the log within the currently acquired specified duration threshold, and the log identifier having a distance equal to the specified duration threshold from the log identifier of the log within the currently acquired specified duration threshold may be determined as the log identifier within the specified duration threshold acquired last time.
Step 203: and responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold.
That is, if the label corresponding to the log in the currently acquired specified duration threshold is a save label, it is indicated that there may be a log useful for finding a problem with the software in the log in the currently acquired specified duration threshold, or if the label corresponding to the log in the last acquired specified duration threshold is a save label, it is indicated that there may be a log useful for finding a problem with the software in the log in the last acquired specified duration threshold, or if the label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold are both save labels, it is indicated that there may be a log useful for finding a problem with the software in both the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold. Therefore, it is necessary to store the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold.
Because the detection of the log is time-consuming, when it is determined that the label corresponding to the log in the currently acquired specified duration threshold is a save label, it may be that the log in the currently acquired specified duration threshold is useful for searching for the software problem, or that the log in the last acquired specified duration threshold is useful for searching for the software problem, but the detection of the log is somewhat delayed, so that the log abnormality information is received from the beginning of acquiring the log in the currently acquired specified duration threshold, but is not received in the process of acquiring the log in the last acquired specified duration threshold, and therefore, the log in the last acquired specified duration threshold needs to be stored. Similarly, there may be a log useful for finding a problem of software in the log in the currently acquired specified duration threshold, but because there is a delay in detection of the log, log abnormality information may be received during acquisition of the log in the next acquired specified duration threshold, and thus the log in the currently acquired specified duration threshold needs to be stored for the next judgment.
For example, assuming that the log of the log in the last acquired specified duration threshold is identified as 20191017-163500.Txt, the log of the log in the current acquired specified duration threshold is identified as 20191017-164000.Txt, and the label corresponding to the log in the last acquired specified duration is a save label, a folder named 20191017-163500.Txt and a folder named 20191017-164000.Txt may be stored.
Further, in response to the fact that the label corresponding to the log in the currently acquired specified duration threshold is the deleted label, the label corresponding to the log in the last acquired specified duration threshold is acquired. And deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
That is, if the label corresponding to the log in the specified duration threshold value acquired at present is the delete label, it is temporarily impossible to determine whether or not there is a log useful for finding a problem with the software in the log in the specified duration threshold value acquired at last, and therefore, it is necessary to acquire the label corresponding to the log in the specified duration threshold value acquired at last, and if the label corresponding to the log in the specified duration threshold value acquired at last is the delete label, it is possible to determine that there is a log useful for finding a problem with the software in the log in the specified duration threshold value acquired at last, and therefore, it is necessary to store the log in the specified duration threshold value acquired at last.
That is, when the label corresponding to the log in the last acquired specified duration threshold and the label corresponding to the log in the current acquired specified duration threshold are both deletion labels, it may be determined that no log useful for searching the software problem exists in the log in the last acquired specified duration threshold, and the log in the last acquired specified duration threshold may be deleted.
In some embodiments, the log identifier of the log in the currently acquired specified duration threshold may be determined from the temporary list, and then, according to the log identifier, the label corresponding to the log identifier is determined from the correspondence between the log identifier and the label, that is, the label corresponding to the log in the currently acquired specified duration threshold is determined. If the label corresponding to the log in the currently acquired specified duration threshold is the deleted label, the log identification of the log in the last acquired specified duration threshold can be determined from the temporary list, and then the label corresponding to the log identification is determined from the corresponding relation between the log identification and the label according to the log identification, namely the label corresponding to the log in the last acquired specified duration threshold is determined.
It should be noted that, in the foregoing embodiment, the implementation process of acquiring the label corresponding to the log in the last acquired specified duration threshold is the same as the process of acquiring the label corresponding to the log in the current acquired specified duration threshold in step 202, and specific implementation may refer to the related description in step 202, which is not repeated herein in the embodiment of the present application.
In some embodiments, the implementation of deleting the log within the last acquired specified duration threshold may include: and acquiring the log identification of the log in the last acquired specified duration threshold from the temporary list to obtain the target log identification. And deleting the log stored corresponding to the target log identification.
In the process of determining the label corresponding to the log in the last acquired specified duration threshold, the log identification of the log in the last acquired specified duration threshold is already determined, so that the log identification of the log in the last acquired specified duration threshold can be directly acquired from the temporary list and is called as the target log identification, then the log stored in the test equipment corresponding to the target log identification is acquired, and the acquired log is deleted, so that the log in the last acquired specified duration threshold can be deleted from the test equipment.
To sum up, in the embodiment of the present application, after the log is obtained, it is necessary to determine whether to delete the log according to the label corresponding to the log. In addition, under the condition that the label corresponding to the log in the last acquired specified duration threshold and the label corresponding to the log in the current acquired specified duration threshold are both stored labels, the fact that the log which is useful for searching the software problem does not exist in the log in the last acquired specified duration threshold can be accurately determined, and in order to save storage space, the log in the last acquired specified duration threshold can be deleted. If one of the label corresponding to the log in the last acquired specified duration threshold and the label corresponding to the log in the current acquired specified duration threshold is a save label, the log which is useful for searching the software problem can be considered to exist in the log in the last acquired specified duration threshold, and the log in the last acquired specified duration needs to be stored. Therefore, the storage space of the test equipment can be saved, the log quantity required to be analyzed by a user can be reduced, and the efficiency of finding out problems and solving the problems is improved.
Further, referring to fig. 3, in fig. 3, the test device may execute three scripts, that is, a software test script, a log deletion script, and a log save script, and the three scripts are implemented through three different processes, which do not interfere with each other. In fig. 3, the test equipment may call a main function first and then execute a software test script, a log deletion script, and a log save script in parallel. During the execution of the software test script, abnormal log information can be returned, and if the abnormal log information is received during the acquisition of the log in the currently acquired specified duration threshold, the label corresponding to the currently acquired log in the specified duration threshold can be determined as a storage label; if abnormal log information is not received in the process of acquiring the log in the currently acquired specified duration threshold, determining the label corresponding to the currently acquired log in the specified duration threshold as a deletion label. And in the software testing process, the test equipment circularly executes a log saving script, the log is saved in the test equipment, and the circulation time interval is a specified duration threshold. In the process of executing the log deleting script, whether the label corresponding to the log in the currently acquired specified duration threshold is a storage label or not can be determined, and if the label corresponding to the log in the currently acquired specified duration threshold is the storage label, the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold are stored; if the label corresponding to the log in the currently acquired specified duration threshold is a deleted label, continuing to judge whether the label corresponding to the log in the last acquired specified duration threshold is a saved label, and if the label corresponding to the log in the last acquired specified duration threshold is a saved label, storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold; if the label corresponding to the log in the last acquired specified duration threshold is a deletion label, deleting the log in the last acquired specified duration threshold.
In the embodiment of the application, the test equipment can acquire the log in real time in the process of performing the software test. Because the software test needs a long time, a large number of logs can be obtained, if the obtained logs are all stored, the storage space is wasted, and the difficulty of solving the problem is improved. Therefore, each time the log in the specified duration threshold is acquired, it can be determined whether to save the log in the specified duration threshold acquired last time and the log in the specified duration threshold acquired currently according to at least one of the label corresponding to the log in the specified duration threshold acquired currently and the label corresponding to the log in the specified duration threshold acquired last time. If the label corresponding to the log in the currently acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the currently acquired specified duration threshold, or the label corresponding to the log in the last acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the last acquired specified duration threshold, or the label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold are both save labels, and it may be considered that a log useful for searching for a software problem may exist in both the log in the last acquired specified duration threshold and the log in the currently acquired specified duration threshold. Therefore, it is necessary to store the log in the specified duration threshold value acquired at present and the log in the specified duration threshold value acquired last time. Therefore, every other specified time length threshold, whether the acquired log is stored or not is determined according to the label corresponding to the acquired log, invalid logs can be deleted, logs which are needed to be stored and are useful for searching the software problem are reserved, the stored log quantity is reduced, so that a user can analyze and check the problem conveniently, and further the problem solving efficiency is improved.
Fig. 4 is a schematic structural diagram of a log storage device according to an embodiment of the present application, where the log storage device may be implemented by software, hardware, or a combination of both as part or all of a test apparatus, and the test apparatus may be the test apparatus shown in fig. 1. Referring to fig. 4, the apparatus includes: an acquisition module 401, a determination module 402 and a storage module 403.
An acquisition module 401, configured to acquire a log in real time during a software testing process;
A determining module 402, configured to determine, for each time a log in a specified duration threshold is obtained, at least one of a label corresponding to the currently obtained log in the specified duration threshold and a label corresponding to the log in the specified duration threshold obtained last time, where the label is used to indicate whether the corresponding log needs to be deleted;
The storage module 403 is configured to store, in response to at least one of a label corresponding to a log in a currently acquired specified duration threshold and a label corresponding to a log in a last acquired specified duration threshold being a save label, a log in the currently acquired specified duration threshold and a log in the last acquired specified duration threshold.
In one possible implementation manner of the embodiment of the present application, the determining module 402 is further configured to:
If log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining the label corresponding to the currently acquired log in the specified duration threshold as a storage label.
In one possible implementation manner of the embodiment of the present application, the storage module 403 is further configured to:
responding to the label corresponding to the log in the currently acquired specified duration threshold as a deletion label, and acquiring the label corresponding to the log in the last acquired specified duration threshold;
and deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
In one possible implementation manner of the embodiment of the present application, the determining module 402 is further configured to:
Based on the current time point, generating a log identifier of a log in a currently acquired specified duration threshold, wherein the log identifier is used for uniquely indicating the log in a corresponding section of specified duration threshold;
And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
In one possible implementation manner of the embodiment of the present application, the determining module 402 is configured to:
acquiring a log identifier of a log in a specified duration threshold value acquired last time from the temporary list to obtain a target log identifier;
And deleting the log stored corresponding to the target log identification.
In the embodiment of the application, the test equipment can acquire the log in real time in the process of performing the software test. Because the software test needs a long time, a large number of logs can be obtained, if the obtained logs are all stored, the storage space is wasted, and the difficulty of solving the problem is improved. Therefore, each time the log in the specified duration threshold is acquired, it can be determined whether to save the log in the specified duration threshold acquired last time and the log in the specified duration threshold acquired currently according to at least one of the label corresponding to the log in the specified duration threshold acquired currently and the label corresponding to the log in the specified duration threshold acquired last time. If the label corresponding to the log in the currently acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the currently acquired specified duration threshold, or the label corresponding to the log in the last acquired specified duration threshold is a save label, it may be considered that a log useful for searching for a software problem may exist in the log in the last acquired specified duration threshold, or the label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold are both save labels, and it may be considered that a log useful for searching for a software problem may exist in both the log in the last acquired specified duration threshold and the log in the currently acquired specified duration threshold. Therefore, it is necessary to store the log in the specified duration threshold value acquired at present and the log in the specified duration threshold value acquired last time. Therefore, every other specified time length threshold, whether the acquired log is stored or not is determined according to the label corresponding to the acquired log, invalid logs can be deleted, logs which are needed to be stored and are useful for searching the software problem are reserved, the stored log quantity is reduced, so that a user can analyze and check the problem conveniently, and further the problem solving efficiency is improved.
It should be noted that: the log storage device provided in the above embodiment is only exemplified by the division of the above functional modules when storing logs, and in practical application, the above functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the device for storing the log and the method embodiment for storing the log provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the device for storing the log are detailed in the method embodiment, which is not described herein again.
Fig. 5 is a block diagram illustrating a test apparatus 500 according to an exemplary embodiment. The test device 500 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. The test device 500 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the test apparatus 500 includes: a processor 501 and a memory 502.
Processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 501 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 501 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 501 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one instruction for execution by processor 501 to implement the method of storing logs provided by the method embodiments of the present application.
In some embodiments, the test apparatus 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502, and peripheral interface 503 may be connected by buses or signal lines. The individual peripheral devices may be connected to the peripheral device interface 503 by buses, signal lines or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch display 505, camera 506, audio circuitry 507, positioning component 508, and power supply 509.
Peripheral interface 503 may be used to connect at least one Input/Output (I/O) related peripheral to processor 501 and memory 502. In some embodiments, processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 501, memory 502, and peripheral interface 503 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 504 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 504 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 504 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 504 may further include NFC (NEAR FIELD Communication) related circuits, which embodiments of the present application are not limited in this respect.
The display 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 505 is a touch display, the display 505 also has the ability to collect touch signals at or above the surface of the display 505. The touch signal may be input as a control signal to the processor 501 for processing. At this time, the display 505 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 505 may be one, providing a front panel of the test device 500; in other embodiments, the display 505 may be at least two, respectively disposed on different surfaces of the test apparatus 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or a folded surface of the test device 500. Even more, the display 505 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 505 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 506 is used to capture images or video. Optionally, the camera assembly 506 includes a front camera and a rear camera. Typically, the front camera is disposed on a front panel of the testing apparatus, and the rear camera is disposed on a rear surface of the testing apparatus. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, each disposed at a different location of the test apparatus 500. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuitry 507 may also include a headphone jack.
The locating component 508 is used to locate the current geographic location of the test device 500 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 508 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, or the Galileo system of Russia.
The power supply 509 is used to power the various components in the test device 500. The power supply 509 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 509 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the test apparatus 500 further includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: an acceleration sensor 511, a gyro sensor 512, a pressure sensor 513, a fingerprint sensor 514, an optical sensor 515, and a proximity sensor 516.
The acceleration sensor 511 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the test apparatus 500. For example, the acceleration sensor 511 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 501 may control the touch display 505 to display a user interface in a landscape view or a portrait view according to a gravitational acceleration signal acquired by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect the body direction and the rotation angle of the test apparatus 500, and the gyro sensor 512 may collect the 3D motion of the user on the test apparatus 500 in cooperation with the acceleration sensor 511. The processor 501 may implement the following functions based on the data collected by the gyro sensor 512: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side frame of the test apparatus 500 and/or on an underlying layer of the touch screen 505. When the pressure sensor 513 is disposed on a side frame of the test apparatus 500, a grip signal of the test apparatus 500 by a user may be detected, and the processor 501 performs a left-right hand recognition or a quick operation according to the grip signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 514 is used for collecting the fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514 or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 501 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back or side of the test device 500. When a physical key or vendor Logo is provided on the test device 500, the fingerprint sensor 514 may be integrated with the physical key or vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 505 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, the processor 501 may also dynamically adjust the shooting parameters of the camera assembly 506 based on the ambient light intensity collected by the optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically provided on the front panel of the test apparatus 500. The proximity sensor 516 is used to capture the distance between the user and the front of the test device 500. In one embodiment, when the proximity sensor 516 detects a gradual decrease in the distance between the user and the front face of the test device 500, the processor 501 controls the touch display 505 to switch from the bright screen state to the off screen state; when the proximity sensor 516 detects that the distance between the user and the front face of the test device 500 gradually increases, the touch display screen 505 is controlled by the processor 501 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not limiting of the test apparatus 500 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In some embodiments, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the method of storing a log in the above embodiments. For example, the computer readable storage medium may be ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is noted that the computer readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, may be a non-transitory storage medium.
It should be understood that all or part of the steps to implement the above-described embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
That is, in some embodiments, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps of the method of storing logs described above.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present application should be included in the scope of the present application.

Claims (10)

1. A method of storing logs for use in a test apparatus, the method comprising:
acquiring logs in real time in the software testing process;
determining at least one of a label corresponding to the log in the specified duration threshold which is acquired currently and a label corresponding to the log in the specified duration threshold which is acquired last time when the log in the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
Responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold;
Wherein, before determining the label corresponding to the log in the current acquired specified duration threshold, each time the log in the specified duration threshold is acquired, the method further comprises:
if log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining a label corresponding to the log in the currently acquired specified duration threshold as a storage label.
2. The method of claim 1, wherein the method further comprises:
responding to the label corresponding to the log in the currently acquired specified duration threshold as a deletion label, and acquiring the label corresponding to the log in the last acquired specified duration threshold;
And deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
3. The method of claim 2, wherein after each log within the specified duration threshold is obtained, further comprising:
Generating a log identifier of a log in a specified time threshold which is acquired currently based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding specified time threshold;
And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
4. The method of claim 3, wherein said deleting logs within said last acquired specified duration threshold comprises:
Acquiring a log identifier of a log in the last acquired specified duration threshold from the temporary list to obtain a target log identifier;
And deleting the log stored corresponding to the target log identifier.
5. An apparatus for storing logs for use in a test device, the apparatus comprising:
The acquisition module is used for acquiring logs in real time in the software testing process;
The determining module is used for determining at least one of a label corresponding to the log in the specified duration threshold which is acquired currently and a label corresponding to the log in the specified duration threshold which is acquired last time when the log in the specified duration threshold is acquired, wherein the label is used for indicating whether the corresponding log needs to be deleted or not;
the storage module is used for responding to at least one label corresponding to the log in the currently acquired specified duration threshold and the label corresponding to the log in the last acquired specified duration threshold as a storage label, and storing the log in the currently acquired specified duration threshold and the log in the last acquired specified duration threshold;
Wherein the determining module is further configured to:
if log abnormal information is received in the process of acquiring the log in the currently acquired specified duration threshold, determining a label corresponding to the log in the currently acquired specified duration threshold as a storage label.
6. The apparatus of claim 5, wherein the storage module is further to:
responding to the label corresponding to the log in the currently acquired specified duration threshold as a deletion label, and acquiring the label corresponding to the log in the last acquired specified duration threshold;
And deleting the log in the last acquired specified duration threshold according to the fact that the label corresponding to the log in the last acquired specified duration threshold is the deletion label.
7. The apparatus of claim 6, wherein the determination module is further to:
Generating a log identifier of a log in a specified time threshold which is acquired currently based on a current time point, wherein the log identifier is used for uniquely indicating the log in a corresponding specified time threshold;
And storing the log identification corresponding to the log in the currently acquired specified duration threshold, and storing the log identification into a temporary list.
8. The apparatus of claim 7, wherein the determination module is to:
Acquiring a log identifier of a log in the last acquired specified duration threshold from the temporary list to obtain a target log identifier;
And deleting the log stored corresponding to the target log identifier.
9. A test device, characterized in that it comprises a memory for storing a computer program and a processor for executing the computer program stored on the memory for carrying out the steps of the method according to any of the preceding claims 1-4.
10. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-4.
CN202010619591.6A 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log Active CN111797017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010619591.6A CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010619591.6A CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Publications (2)

Publication Number Publication Date
CN111797017A CN111797017A (en) 2020-10-20
CN111797017B true CN111797017B (en) 2024-05-14

Family

ID=72810916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010619591.6A Active CN111797017B (en) 2020-07-01 2020-07-01 Method, device, test equipment and storage medium for storing log

Country Status (1)

Country Link
CN (1) CN111797017B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363934A (en) * 2020-11-11 2021-02-12 展讯半导体(成都)有限公司 Storage method, system, equipment and storage medium for automatic test Log
CN112559327B (en) * 2020-12-02 2022-09-06 天津车之家数据信息技术有限公司 Test case generation method and device and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111355A1 (en) * 2016-12-15 2018-06-21 Nec Laboratories America, Inc. Content-level anomaly detection for heterogeneous logs
CN108833132A (en) * 2018-04-26 2018-11-16 努比亚技术有限公司 log acquisition control method, terminal and computer readable storage medium
CN111177013A (en) * 2020-01-06 2020-05-19 北京达佳互联信息技术有限公司 Log data acquisition method and device, computer equipment and storage medium
CN111338910A (en) * 2020-05-19 2020-06-26 腾讯科技(深圳)有限公司 Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10740212B2 (en) * 2017-06-01 2020-08-11 Nec Corporation Content-level anomaly detector for systems with limited memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111355A1 (en) * 2016-12-15 2018-06-21 Nec Laboratories America, Inc. Content-level anomaly detection for heterogeneous logs
CN108833132A (en) * 2018-04-26 2018-11-16 努比亚技术有限公司 log acquisition control method, terminal and computer readable storage medium
CN111177013A (en) * 2020-01-06 2020-05-19 北京达佳互联信息技术有限公司 Log data acquisition method and device, computer equipment and storage medium
CN111338910A (en) * 2020-05-19 2020-06-26 腾讯科技(深圳)有限公司 Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于WebService的多***水利日志存储方法;冯钧;张立霞;唐志贤;;计算机与现代化(02);全文 *
基于日志挖掘的装备健康管理***设计与实现;王国林;介阳阳;叶君好;叶彬;;计算机测量与控制(04);全文 *

Also Published As

Publication number Publication date
CN111797017A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN108897659B (en) Method, device and storage medium for modifying log level
CN111127509B (en) Target tracking method, apparatus and computer readable storage medium
CN108132790B (en) Method, apparatus and computer storage medium for detecting a garbage code
CN111754386B (en) Image area shielding method, device, equipment and storage medium
CN111177137B (en) Method, device, equipment and storage medium for data deduplication
CN112256320B (en) Version number generation method, device, terminal and storage medium
CN111797017B (en) Method, device, test equipment and storage medium for storing log
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN111192072A (en) User grouping method and device and storage medium
CN112612539B (en) Data model unloading method and device, electronic equipment and storage medium
CN110737692A (en) data retrieval method, index database establishment method and device
CN111428080B (en) Video file storage method, video file search method and video file storage device
CN113051485B (en) Group searching method, device, terminal and storage medium
CN113408989B (en) Automobile data comparison method and device and computer storage medium
CN112905328B (en) Task processing method, device and computer readable storage medium
CN112612540B (en) Data model configuration method, device, electronic equipment and storage medium
CN111984738B (en) Data association method, device, equipment and storage medium
CN116842047A (en) Cache updating method, device, equipment and computer readable storage medium
CN110941458B (en) Method, device, equipment and storage medium for starting application program
CN112000576A (en) Code data detection method, device, equipment and storage medium
CN112214115A (en) Input mode identification method and device, electronic equipment and storage medium
CN111798358B (en) Method and device for determining path time, electronic equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant