CN113010482B - Log processing method and device, mobile terminal and storage medium - Google Patents

Log processing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN113010482B
CN113010482B CN201911327936.4A CN201911327936A CN113010482B CN 113010482 B CN113010482 B CN 113010482B CN 201911327936 A CN201911327936 A CN 201911327936A CN 113010482 B CN113010482 B CN 113010482B
Authority
CN
China
Prior art keywords
log
file
mobile terminal
application
target
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
CN201911327936.4A
Other languages
Chinese (zh)
Other versions
CN113010482A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911327936.4A priority Critical patent/CN113010482B/en
Publication of CN113010482A publication Critical patent/CN113010482A/en
Application granted granted Critical
Publication of CN113010482B publication Critical patent/CN113010482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application provides a log processing method and device. The method comprises the following steps: the mobile terminal acquires a log file of a target application program; using a locally installed log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal; acquiring a search keyword through a display interface of log analysis application; and determining target log contents in the log contents according to the search keywords and displaying the target log contents. According to the embodiment of the application, the log analysis application is utilized to convert the log file into the log content corresponding to the display mode supported by the mobile terminal, and the target log content is displayed through the log analysis application, so that the log information can be analyzed and processed in real time on the mobile terminal, a developer is separated from the PC end to analyze and process the log information of the user, and the efficiency of analyzing and processing the log is improved.

Description

Log processing method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a log processing method, device, mobile terminal, and storage medium.
Background
With the development of computer technology, the number of applications on the market is increasing, so that when users use the applications, the user often has an abnormal, erroneous or crashed situation, and in order to reduce the occurrence of the situation, developers need to collect and analyze logs of the user side. The log may record, among other things, a number of critical information, including error information generated by the application program at runtime, debug information, and some other useful state information, operational data information, etc.
At present, a developer can acquire log information on a terminal where the developer is located, if the developer wants to acquire log information of other user terminals, for example, when the developer wants to acquire log information of a terminal corresponding to an internal person, the developer usually acquires the log information through a PC terminal, and after the acquisition, further analysis and processing can be performed on the PC terminal. No corresponding way is provided on the mobile terminal to further process the acquired log information after acquiring the log information on other terminals. The efficiency of log processing is reduced, and the user experience is reduced.
Disclosure of Invention
The embodiment of the application provides a log processing method, a log processing device, a mobile terminal and a storage medium, which can enable developers to analyze and process log information of users through the mobile terminal.
The embodiment of the application provides a log processing method, which comprises the following steps:
the mobile terminal acquires a log file of a target application program;
using a locally installed log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal;
acquiring a search keyword through a display interface of log analysis application;
determining target log content in the log content according to the search keywords;
and displaying the target log content through a display interface.
The embodiment of the application also provides a log processing device, which comprises:
the file acquisition unit is used for acquiring the log file of the target application program by the mobile terminal;
the conversion unit is used for converting the log file into log content corresponding to a display mode supported by the mobile terminal by using a locally installed log analysis application;
the keyword acquisition unit is used for acquiring search keywords through a display interface of the log analysis application;
the determining unit is used for determining target log contents in the log contents according to the search keywords;
and the display unit is used for displaying the target log content through a display interface.
Further, the file acquisition unit is specifically configured to: displaying a log acquisition interface when a log acquisition control of a target application program is triggered; acquiring user operation through a log acquisition interface to determine log acquisition conditions; and constructing the log information of the target application program, which meets the log acquisition condition, into a log file.
Further, the conversion unit is specifically configured to: after the log file is constructed, a sharing interface is displayed, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the call control is triggered, starting a log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
Further, the file acquisition unit is specifically configured to: the mobile terminal obtains a receiving instruction of the log file through communication application; based on the received instruction, a log file of the target application program from the other terminal is acquired through the communication application.
Further, the conversion unit is specifically configured to: after acquiring the log files of the target application programs from other terminals, displaying a sharing interface based on the opening operation of the user on the log files, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the call control is triggered, starting a log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
Further, the other terminals acquire the log file of the target application program through the communication application, and send the log file of the target application program to the mobile terminal through the communication application.
Further, when the target application is a communication application, the other terminals send the log file to the mobile terminal through the target application.
Further, the conversion unit is specifically configured to: using a locally installed log analysis application to decompress log files; and determining the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal.
Further, the conversion unit is specifically configured to: using a locally installed log analysis application to decompress the log file to obtain log files corresponding to a plurality of modules of the target application program; determining the log files of the modules developed by the corresponding users of the mobile terminal from the log files corresponding to the modules; and determining the log content of the log file of the module developed by the user corresponding to the mobile terminal as the log content corresponding to the display mode supported by the mobile terminal.
Further, the keyword acquisition unit is specifically configured to: when the fact that the search text box of the display interface is triggered is detected, displaying a selectable function list; and determining the search keywords according to the selection operation of the user on the selectable function list.
Further, the keyword acquisition unit is specifically configured to: when detecting that a retrieval text box on a display interface of the log analysis application is triggered, acquiring a retrieval expression input in the retrieval text box; and determining the search keywords according to the search expression.
Further, the display unit is specifically configured to: acquiring a preset abnormal keyword; and displaying the target log content through a display interface, and highlighting preset abnormal keywords in the target log content.
The embodiment of the application also provides a mobile terminal, which comprises a memory and a processor connected with the memory; the memory is used for storing a computer program; the processor is configured to run a computer program stored in the memory to perform any one of the log processing methods described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the log processing methods is realized.
After the log file of the target application program is obtained, the log file is converted into the log content corresponding to the display mode supported by the mobile terminal through the locally installed log analysis application, the log content is searched through the display interface of the log analysis application based on the log content, so that the target log content is determined, and finally the target log content is displayed through the display interface of the log analysis application. According to the embodiment of the application, the log analysis application installed on the mobile terminal is utilized to convert the log file into the log content corresponding to the display mode supported by the mobile terminal, and the target log content is displayed through the display interface of the log analysis application, so that the log information can be analyzed and processed in real time on the mobile terminal, a developer is separated from the PC end to analyze and process the log information of the user, and the efficiency of log analysis and processing is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1a is a schematic view of a scenario of a log processing method according to an embodiment of the present application;
FIG. 1b is a schematic diagram of a first flow chart of a log processing method according to an embodiment of the present application;
FIG. 1c is a schematic diagram of log information provided by an embodiment of the present application;
FIG. 1d is a schematic diagram of a log obtaining interface and a corresponding sharing interface according to an embodiment of the present application;
FIG. 1e is a schematic flow chart of sharing log files to a log analysis application according to an embodiment of the present application;
FIG. 1f is a schematic diagram of a file opening interface and a corresponding sharing interface according to an embodiment of the present application;
FIG. 1g is a schematic flow chart of sharing log files to a log analysis application according to an embodiment of the present application;
FIG. 1h is a schematic flow chart of a log processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a second flow of a log processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a third flow of the log processing method according to the embodiment of the present application;
FIG. 4 is a fourth flowchart of a log processing method according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a log processing apparatus provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
Before explaining the embodiments of the present application in detail, some terms related to the embodiments of the present application are explained.
The log analysis application is an application program and can be installed in the mobile terminal. The log analysis application can decompress the log file and read the decompressed log file, and the log analysis application can process the log file and display the processed target log content on the display interface of the log analysis application.
Regular expressions, which are a concept in computer science, are literal patterns (rules) composed of common characters (e.g., characters a through z) and special characters (called "meta characters"). The pattern describes one or more strings to be matched when searching text. The regular expression serves as a template to match a certain character pattern (rule) with the searched character string. Are typically used to retrieve and replace text that meets a certain pattern (rule).
The concept of regular expressions was originally generalized by the tool software in Unix (e.g., sed and grep). Regular expression related APIs, such as java, are provided in many programming languages. The platform (system) of the mobile terminal, such as an Android platform (system), is mostly realized based on java, so that the mobile terminal platform supports regular expression retrieval operation.
The log file of the target application on the local site can be obtained by the mobile terminal, however, further analysis processing of the log file of the target application on the local site cannot be performed by the mobile terminal. On one hand, the mobile terminal cannot analyze and process the log file and can only process the log file through the PC end, so that a great deal of inconvenience is brought to a developer; on the other hand, the user terminal reflects the problem, and when the developer is not in front of the PC end, the log information of the user terminal cannot be timely obtained, so that the problem existing in the application program cannot be timely corrected through analysis and processing of the log.
In order to solve the problems described above, embodiments of the present application provide a log processing method, apparatus, mobile terminal, and computer-readable storage medium.
Fig. 1a is a schematic view of a log processing method according to an embodiment of the present application. As shown in fig. 1a, the scenario includes a first terminal where a developer is located and a second terminal where a user is located, where the user includes an internal test user and an external network user. The first terminal and the second terminal are both provided with target application programs. In the embodiment of the application, the first terminal acquires the installation package of the log analysis application, and installs the installation package of the log analysis application to the first terminal, so that the first terminal is also correspondingly provided with the log analysis application.
The first terminal where the developer is located can acquire the log file of the target application program on the local area, and the second terminal where the user is located can also acquire the log file of the target application program on the local area. The second terminal can send the obtained log file of the target application program to the first terminal where the developer is located; for example, the information is sent to the first terminal where the developer is located through a communication application or the like. Specifically, when the communication friends of the second terminal communication application include a developer, the log file of the target application program of the second terminal can be sent to the first terminal where the developer is located through the communication application; or when the second terminal holds the mailbox of the developer, the log file of the target application program of the second terminal can be sent to the first terminal where the developer is located through the mailbox; the log file of the target application program of the second terminal may also be sent to the first terminal where the developer is located in other manners. Thus, the first terminal where the developer is located can acquire the log file of the local target application program, and also can acquire the log file of the target application program on the second terminal where the user is located.
After the first terminal acquires the log file of the target application program, the log analysis application is called to acquire the log file of the target application program, and after the log analysis application acquires the log file, the log file is converted into log content corresponding to the display mode supported by the first terminal, the log content is processed through the log analysis application, and the processed target log content is displayed on a display interface of the log analysis application.
The log processing method provided by the embodiment of the application can also be applied to other scenes, such as a scene including a first terminal where a developer is located and a second terminal where a user is located, wherein the difference from the scene in fig. 1a is that: the developer has corresponding management rights (corresponding management rights refer to rights that user log files can be obtained); the manner in which the first terminal obtains the log file of the target application of the second terminal is different. For example, after detecting that the target application program is abnormal, the second terminal where the user is located sends a log file including abnormal information to the first terminal where the developer corresponding to the management authority is located through a sending control of the target application program, for example, the target application program, and the first terminal directly obtains the log file sent by the second terminal; or when the first terminal where the developer is located receives the abnormal information sent by the second terminal where the user is located after the application program is abnormal, actively sending a log obtaining instruction to obtain a log file of the target application program on the second terminal where the user is located. When the user is an internal test user, the log file can be sent to a second terminal where the developer is through the communication application. It can be understood that, in other scenarios, the second terminal where the internal test user is located may send the log file to the first terminal through the communication application, or may directly send the log file to the first terminal through the target application; the external network uses the user and can directly send the log file to the first terminal through the target application program.
It should be noted that, the first terminal where the developer is located in the embodiment of the present application refers to a mobile terminal, including terminals such as a mobile phone and a PAD; the second terminal where the user is located may refer to a mobile terminal, such as a mobile phone, a PAD, or a non-mobile terminal, such as a PC. In the embodiment of the present application, the second terminal where the user is located may also be referred to as other terminals, user terminals, and the like.
Fig. 1b is a schematic flow chart of a log processing method according to an embodiment of the present application, where the method is applied to a mobile terminal, such as a first terminal where a developer shown in fig. 1a is located, and the log processing method includes steps 101 to 105, which may specifically be as follows:
101, the mobile terminal obtains a log file of the target application program.
The log file records log information of the target application program, including a large amount of text content. The log information in the log file of the target application program is shown in fig. 1c, where the log information includes information such as time, session identifier, user identifier, error level, and the like. The log file of the target application is typically a text file, such as a file of. Txt or the like.
The mobile terminal (corresponding to the first terminal in fig. 1 a) may acquire a log file of a local target application and may also acquire a log file of a target application on the user terminal (corresponding to the second terminal in fig. 1 a). It should be noted that, because the log file records the log information of the target application program, the log file includes a large amount of text content, so that the log files of the target application program acquired by the mobile terminal are all compressed log files, so as to reduce the file quantity of the log files, reduce the storage space for storing the log files, and accelerate the network transmission speed of the log files when network transmission is required. Or it may be simply understood that the log file of the target application program obtained by the mobile terminal is generally a compressed log file.
Wherein, when the terminal (including the mobile terminal) obtains the log file of the local target application program, step 101 includes: displaying a log acquisition interface when a log acquisition control of a target application program is triggered; acquiring user operation through a log acquisition interface to determine log acquisition conditions; and constructing the log information of the target application program, which meets the log acquisition condition, into a log file. The method comprises the steps that a terminal obtains a log file of a local target application program, wherein the mobile terminal where a developer is located obtains the log file of the local target application program, and a second terminal where a user is located obtains the log file of the local target application program. The terminal obtains the log file of the local target application program, which can be simply understood as exporting the log file of the local target application program.
Among them, the log acquisition control, and the file opening control/file import control, the call control that calls the log analysis application, the log transmission control, and the like (not to be limited to, examples) control referred to below may exist in various forms. Such as in the form of buttons, icons, labels, text, combinations thereof, or the like.
Among them, log acquisition control, and file opening control/file import control, call control for calling log analysis application, log sending control, etc. (not to be exemplified) control referred to below can be triggered in various ways. For example, when a click/touch operation of the user on the corresponding control is detected, triggering the corresponding control; the triggering may also be performed by a voice manner, for example, receiving voice information of a user, analyzing the voice information, and if the voice information includes content for triggering a corresponding control, triggering the corresponding control, for example, the voice information is: opening a log acquisition interface and the like, and triggering a log acquisition control; the corresponding control may also be triggered in other ways. When the corresponding control is triggered, if not described in detail, the control triggering mode can be referred to.
A log acquisition control is included on some interface of the target application. For example, when a touch operation of the log acquisition control by the user is detected, the log acquisition control is triggered. And displaying a log acquisition interface when the log acquisition control of the target application program is triggered. Referring to fig. 1d, in fig. 1d, the interface corresponding to the gray portion is an exemplary diagram of a log acquisition interface. The log obtaining interface includes information such as AccountID (user log identifier), log sending time length, etc. It should be noted that the log acquisition interface in fig. 1d is only one example. Other information, such as information of days, may be included in the log obtaining interface, where the log information of the corresponding days is obtained; or may further include information of a start date and a number of days, indicating that the log information required to be acquired is log information of a corresponding number of days after the start date. Or more information is further included in the log obtaining interface, for example, the log obtaining interface may further include a date, the date indicates the date to which the log information to be obtained belongs, and the sending log duration indicates the log information from a:00-b:00, a o 'clock to b o' clock, and the like in the date.
And acquiring user operation through a log acquisition interface. Wherein the user operation includes all operations on the log acquisition interface, such as an input operation, a selection operation, and the like. Both the input operation and the selection operation may be performed in various ways. The input operation can be manually input by calling a keyboard interface of the mobile terminal; or by invoking a voice interface of the mobile terminal to receive and parse the voice information, automatic input, etc. For example, a transmission log duration input by the user is acquired. The selection operation may be performed by triggering a corresponding selection control to perform selection, etc. It will be appreciated that the purpose of the selection operation is also to make an input.
And acquiring user operation through a log acquisition interface to determine log acquisition conditions. For example, a transmission log duration input by the user is acquired to determine the transmission log duration as a log acquisition condition.
According to the log obtaining conditions, obtaining the log information meeting the log obtaining conditions from the log information of the target application program, and constructing a log file according to the log information meeting the log obtaining conditions. The log information of the target application program may be stored in various manners, for example, in terms of days, and specifically, the log information in one day is saved as one log file. This will be described by way of example. If the log obtaining condition is that the log in a plurality of days is obtained, obtaining a plurality of original log files from original log information of the target application program according to the date corresponding to the plurality of days in the log obtaining condition, and compressing the plurality of original log files to construct the log files; alternatively, the plurality of original log files may be constructed as one log file, for example, the text content of the other original log files is appended to the end of the text content of one of the original log files to obtain a file, and then the file is compressed to construct the log file. If the log obtaining condition is that a log of a certain time period in a certain day is obtained, determining an original log file corresponding to the target application program according to a date corresponding to the day in the log obtaining condition, determining log information matched with the time period from the original log file according to the time period, obtaining the log information, storing the log information into an empty file, and compressing the file to construct the log file. The log file may also be constructed in other ways.
Wherein, when the mobile terminal obtains the log file from the target application program on the other terminal (user terminal) (the log file of the target application program on the other terminal has been exported), step 101 includes: the mobile terminal obtains a receiving instruction of the log file through communication application; based on the received instruction, a log file of the target application program from the other terminal is acquired through the communication application. In this scheme, the mobile terminal and other terminals include communication applications therein.
The other terminals can acquire the log file of the local target application program in the mode described above (when the log acquisition control of the target application program is triggered, a log acquisition interface is displayed, user operation is acquired through the log acquisition interface to determine log acquisition conditions, and log information meeting the log acquisition conditions of the target application program is constructed as the log file); the log file of the target application may also be obtained by the communication application. The method for acquiring the log file of the target application program by the other terminals through the communication application comprises the following steps: other terminals acquire a receiving instruction of the log file through communication application; based on the received instruction, a log file of the target application program is obtained through the communication application. The receiving instruction of the log file may be triggered automatically after the communication application of the other terminal detects the log file, or may be triggered when the communication application of the other terminal receives confirmation receiving information of the user, where the confirmation receiving information is based on the confirmation receiving information triggered by the user of the log file. Based on the received instruction, a log file of the target application program is obtained through the communication application. It will be appreciated that the other terminals may obtain the log file of the target application program through the communication application, in which case the other terminals may or may not install the target application program, and the other terminals obtain the log file of the target application program sent by some other terminals.
After acquiring the log file of the target application program, the other terminals can send the log file of the target application program to the mobile terminal through the communication application. Specifically, after acquiring the log file of the target application program, the other terminals call the sharing file interface provided by the other terminal systems when the log sending control of the target application program is triggered; displaying a sharing interface corresponding to the sharing file interface, wherein the sharing interface comprises a calling control for calling the communication application; when a call control for calling the communication application is triggered, the communication application is started, and the log file of the target application program is sent to the mobile terminal through a communication user.
Referring to fig. 1d, in the upper right hand corner of fig. 1d, a log send control, a "send" button, is provided. When the send button is triggered, a sharing file interface provided by the mobile terminal system is called, and a sharing interface corresponding to the sharing file interface is displayed. The shared file interface is a sending file interface, and the shared interface corresponding to the shared file interface is a sending interface corresponding to the sending file interface. In fig. 1d, an interface with a white background color corresponding to the lower side of the mobile terminal is a sharing interface corresponding to a sharing file interface, and the sharing interface includes a call control for calling icons and characters corresponding to the communication application. And starting the communication application when a call control corresponding to the call communication application is triggered.
The communication application comprises an instant messaging application, a mailbox application and the like. When the communication friends of the other terminal instant messaging application comprise developers, after the instant messaging application is started, the developers selected by the user in the communication friends can be obtained, and the log files are sent to the mobile terminal where the developers are located through the instant messaging application. When other terminals hold the mailbox of the developer, the mailbox application can be started and then the log file can be sent to the mobile terminal where the developer is located.
In some cases, after acquiring the log file of the target application program, the other terminal may also send the log file of the target application program to the mobile terminal through the target application program. In this case, it is understood that the target application belongs to one of the communication applications, and thus, after the target file of the target application is acquired, the log file of the target application may be directly transmitted through the target application.
The above is a detailed procedure in which the other terminal transmits the log file of the target application program to the mobile terminal through the communication application after acquiring the log file of the target application program.
After the other terminals send the log file of the target application program to the mobile terminal, the mobile terminal receives and acquires the log file.
The receiving instruction of the log file may be triggered automatically after the communication application of the mobile terminal detects the log file, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, where the confirmation receiving information is based on the confirmation receiving information triggered by the user of the log file. And the mobile terminal acquires a receiving instruction of the log file through the communication application. And receiving, by the communication application, a log file of the target application from the other terminal based on the reception instruction to acquire the log file.
102, converting the log file into log content corresponding to the display mode supported by the mobile terminal by using the locally installed log analysis application.
Wherein the log analysis application may be pre-installed in the mobile terminal. When the log analysis application is installed, the function supporting the file opening mode and/or the function supporting the file sending mode are/is opened by default.
Because the log files are generally compressed files, the compressed files cannot be checked at the mobile terminal and can not be further analyzed and processed, the existing checking of the compressed log files and the further analysis and processing of the compressed log files are all performed at the PC end. According to the embodiment of the application, after the mobile terminal acquires the log file, the log file is converted into the log content corresponding to the display mode supported by the mobile terminal by using the locally installed log analysis application.
Specifically, the log file needs to be shared to the log analysis application, so that the log file is converted into the log content corresponding to the display mode supported by the mobile terminal by using the locally installed log analysis application. The log file can be shared to the log analysis application in a plurality of modes, so that the log file can be converted into log content corresponding to a display mode supported by the mobile terminal by using the locally installed log analysis application.
Mode one: the mobile terminal obtains the log file according to any mode in the step 101, and after the log file is saved to the mobile terminal, the step 102 includes: starting a log analysis application and displaying an interface of the log analysis application; when the fact that a file opening control/file importing control of the log analysis application is triggered is detected on an interface of the log analysis application, a file selection page is displayed; and selecting the saved log file based on user operation on the file selection page, so that the log file is shared to a log analysis application to be converted into log content corresponding to a display mode supported by the mobile terminal by using the locally installed log analysis application.
Mode two: when the mobile terminal obtains the log file of the local target application, step 102 includes: after the log file is constructed, a sharing interface is displayed, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the call control is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
After the log file is constructed, when the log sending control of the target application program is detected to be triggered, the sharing file interface provided by the mobile terminal system is called, and the sharing interface corresponding to the sharing file interface is displayed. Specifically, a sharing file interface is called; acquiring all application programs supporting the function of a file opening mode and/or the function of a file sending mode on a mobile terminal; and displaying a call control for calling the corresponding application program on a sharing interface corresponding to the sharing file interface. Because the log analysis application opens the functions supporting the file opening mode and/or supporting the file sending mode by default during installation, the log analysis application is included on the sharing interface. A call control that invokes the log analysis application is displayed on the sharing interface.
As shown in fig. 1d, a log sending control, a "send" button, is provided in the upper right corner of the log acquisition interface of the target application. When the sending button is detected to be triggered, the sharing file interface provided by the mobile terminal system is called, and the sharing interface corresponding to the sharing file interface is displayed. It will be appreciated that the shared interface is a send interface. In fig. 1d, the interface with the white background color corresponding to the lower side of the mobile terminal is the sharing interface corresponding to the sharing file interface, that is, the interface corresponding to the "please select send software" is the sharing interface, and the sharing interface includes the icon and the text corresponding to the calling log analysis application.
And when a call control for calling the log analysis application is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
As shown in fig. 1e, a flow chart of sharing a log file of a target application program to a log analysis application by a mobile terminal is shown. And the mobile terminal where the developer is located shares the log file of the target application program on the mobile terminal to the log analysis application by calling a sharing file interface provided by the mobile terminal system. And further analyzing and processing the log file through log analysis application, and displaying the log file.
Mode three: when the mobile terminal obtains the log file from the target application on the other terminal, step 102 includes: after acquiring the log files of the target application programs from other terminals, displaying a sharing interface based on the opening operation of the user on the log files, wherein the sharing interface comprises a calling control for calling the log analysis application; and when a call control for calling the log analysis application is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
After acquiring the log file of the target application from the other terminal, an open operation to the log file may be acquired. For example, the log file is directly touched to perform an opening operation on the log file; touching an opening control at a corresponding position of the log file to open the log file; touching the log file, displaying a file opening interface, displaying an opening control of opening by using other applications on the file opening interface, and triggering the opening control to open the log file; the log file may also be opened by other means. Based on the opening operation of the user on the log file, an opening file interface provided by the mobile terminal system is called, and a sharing interface corresponding to the opening file interface is displayed. The sharing interface includes a call control that invokes the log analysis application.
As shown in fig. 1f, the file preview interface (background interface) corresponds to a file opening interface, on which an opening control (the opening control is not shown in the figure) for opening by using other applications is displayed, the opening control is triggered, an opening file interface provided by the mobile terminal system is invoked, and a sharing interface corresponding to the opening file interface is displayed. The sharing interface is an opening interface, and the opening interface comprises a call control for calling the log analysis application.
Specifically, calling to open a file interface; acquiring all application programs supporting a file opening mode function and/or a file sending mode function; and displaying a call control for calling the corresponding application program on a sharing interface corresponding to the opened file interface. In this way, call controls that call the log analysis application are displayed on the sharing interface.
The sharing interface is shown as the interface in fig. 1f where "select other applications open". The method comprises the steps that call controls of all application programs of the mobile terminal capable of opening the log file are displayed on the sharing interface, wherein the call controls of the application programs comprise icons, characters, options and the like for calling the corresponding application programs; a call control of the log analysis application is determined among call controls of the plurality of application programs.
And when a call control for calling the log analysis application is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal. When the control is triggered and invoked through clicking/touching operation, the icon of the control can be clicked/touched, the text of the control can be clicked/touched, the options of the control can be invoked through clicking/touching, and the like.
Further, in the process of sharing the log file to the log analysis application, besides the calling control for calling the log analysis application is triggered, the corresponding frequency control needs to be triggered, and after the calling control and the frequency control are detected to be triggered, the log analysis application is started. The frequency control comprises a first frequency control and a second frequency control, the first frequency control is used for indicating that the first frequency control and the calling control are required to be triggered every time the log file is shared to the log analysis application, the second frequency control is triggered in the process of sharing the log file to the log analysis application for the first time, and the second frequency control and the calling control are not required to be triggered in the follow-up process.
After the log file of the target application program of the other terminal is obtained, when the second frequency control and the call control are triggered for the first time, the call control is saved, and when the second time, the corresponding step 102 includes: after the log files of the target application programs from other terminals are obtained, based on the opening operation of the user on the log files, the saved call control is obtained, and the log analysis application is started according to the call control so as to convert the log files into log contents corresponding to the display modes supported by the mobile terminal. And the second time is directly based on the opening operation of the user on the log file, the saved call control is obtained, and the log analysis application is started according to the call control. As shown in fig. 1f, the first frequency control and the second frequency control correspond to a "only once" option and a "set to default" option, respectively.
Fig. 1g is a schematic flow chart of sharing a log file of a target application program to a log analysis application by a mobile terminal. The user terminal sends the log file of the target application program to the mobile terminal where the developer is located through the instant messaging application, the mailbox application and the like, and the mobile terminal shares the log file of the target application program from the user terminal to the log analysis application by calling an open file interface provided by the mobile terminal system after acquiring the log file of the target application program from the user terminal. And further analyzing and processing the log file through log analysis application, and displaying the log file.
The first, second and third schemes share the log file of the target application program to the log analysis application. The scheme in the first mode is used for importing the log file of the target application program through the log analysis application; after the log file of the target application program is obtained, the scheme in the second mode and the scheme in the third mode shares the log file of the target application program to the log analysis application by calling an interface on the mobile terminal. In the second mode, the log file is sent to the log analysis application in a file sending mode; in the third mode, the log file is sent/transferred to the log analysis application by means of file opening. The log files are shared to a log analysis application for further processing by the log analysis application.
After the log file of the target application program is shared to the log analysis application, the log file is further analyzed and processed through the log analysis application, and is displayed.
Specifically, step 102 includes: using a locally installed log analysis application to decompress log files; and determining the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal.
Because the log file of the target application program acquired by the mobile terminal is a compressed file in general, the log file of the target application program is decompressed by using the locally installed log analysis application after the acquired log file of the target application program is shared to the log analysis application, so as to obtain the decompressed log file. The file format of the decompressed log file is the same as the file format of the original log file. And reading the log content of the decompressed log file by the log analysis application, and determining the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal.
Specifically, step 102 includes: using a locally installed log analysis application to decompress log files; and reading the text content of the decompressed log file, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal.
And reading the text content of the decompressed log file by the log analysis application, namely, a text character string, taking the text character string corresponding to the log file as an original log character string, and determining the original log character string as the log content corresponding to the display mode supported by the mobile terminal.
It can be understood that if the file format of the original log file is a txt format, a doc format, a docx format, etc., and the mobile terminal supports the file content display of these file formats, the file format of the obtained original log file after decompressing the log file is a format supported by the display mode supported by the mobile terminal. Thus, further, the mobile terminal where the developer is located can check the log information in the decompressed log file through the log analysis application. Specifically, the decompressed log file with the corresponding format can be directly called through the log analysis application, and log information of the decompressed log file is checked through the log analysis application; the file content of the decompressed log file can be directly read through the log analysis application, and the file content of the log file can be checked through a display interface of the log analysis application. The mobile terminal where the developer is located can also directly determine the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal without checking the log information in the decompressed log file. If the file format of the original log file obtained after decompressing the log file is still not the format supported by the display mode supported by the mobile terminal, reading the text content (text character string) of the decompressed log file by the log analysis application, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal. Further, the mobile terminal where the developer is located can check the log information in the decompressed log file through the log analysis application. Specifically, the log analysis application directly reads the file content of the decompressed log file, and the display interface of the log analysis application is used for checking the file content and the like of the log file.
Fig. 1h is a flow chart of a log processing method according to an embodiment of the present application. As shown in fig. 1h, an interface provided by the mobile terminal system is called, and a log file of a target application program is shared (e.g., sent/transferred) to a log analysis application in a file sending manner; or an interface provided by the mobile terminal system is called, and the log file is shared (e.g. sent/transferred) to the log analysis application in a file opening mode. Starting a log analysis application, decompressing the compressed log file to a local place, such as an SD card, through the log analysis application to obtain a decompressed log file, and reading the text content of the decompressed log file to a memory in a file data stream mode to obtain an original log character string; and performing text filtering on the original log character strings through the log analysis application to obtain filtered key log character strings, and displaying the key log character strings on a display interface of the log analysis application. The text filtering is performed on the original log string, which will be described in detail in the following steps, and please refer to the content of the following steps specifically.
Decompressing the log file through the log analysis application, and reading the log content of the decompressed log file, so as to convert the log file into the log content corresponding to the display mode supported by the mobile terminal.
Further, if the original log file is a log file corresponding to a plurality of modules of the target application program. It can be understood that when a plurality of modules in the target application program are respectively developed and the association between the plurality of modules is not large, log information corresponding to the plurality of modules of the target application program can be separately stored for respectively collecting logs, so that each module has an original log file corresponding to the module.
Correspondingly, step 102 includes: using a locally installed log analysis application to decompress log files, wherein the decompressed log files comprise log files corresponding to a plurality of modules of a target application program; determining the log files of the modules developed by the corresponding users of the mobile terminal from the log files corresponding to the modules; determining the log content of a log file of a module developed by a user corresponding to a mobile terminal as the log content corresponding to a display mode supported by the mobile terminal; or after determining the log file of the module developed by the corresponding user of the mobile terminal, reading the text content of the log file of the module developed by the corresponding user of the mobile terminal, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal. The method for determining the log files of the modules developed by the mobile terminal corresponding to the user from the log files corresponding to the modules comprises the following steps: acquiring file names of log files corresponding to a plurality of modules; and determining the log file of the module developed by the mobile terminal corresponding to the user according to the file name. It is understood that the file name of the log file includes information such as a module identifier corresponding to the module.
Therefore, a developer only needs to pay attention to the log files of the modules developed by the developer and does not need to pay attention to the log files of other modules, so that the safety among the modules of the target application program is improved.
And 103, obtaining the search keywords through a display interface of the log analysis application.
The log analysis application is correspondingly provided with a display interface, and a retrieval text box is arranged on the display interface. The original log string may be text filtered by entering log filtering rules in the search text box.
Specifically, step 103 includes: when detecting that a retrieval text box on a display interface of the log analysis application is triggered, acquiring a retrieval expression input in the retrieval text box; and determining the search keywords according to the search expression. When the fact that the search text box is touched is detected, when the focus is at the position of the search text box, the cursor moves to the search text box, and the search text box on the display interface is determined to be triggered; the retrieval of the text box may also be triggered in other ways. When the search text box on the display interface is detected to be triggered, a search expression input in the search text box is acquired, and a search keyword is determined according to the search expression. Wherein the search expression may have various forms. For example, the search expression is a regular expression, e.g., data. Wherein, the wildcard matches zero or more characters, \represents an escape character, \represents, namely, the search keyword is determined to comprise data. Thus, the regular expression can match the contents of data.dat, data1.dat, data2.dat, data12.dat, datax.dat, dataXYZ.dat and the like. The search expression may also be in other forms, for example, keyword 1and keyword 2and keyword 3, which indicate that the search keyword includes keyword 1, keyword 2, and keyword 3.
Specifically, step 103 includes: when detecting that a search text box of a display interface of the log analysis application is triggered, displaying a selectable function list; and determining the search keywords according to the selection operation of the user on the selectable function list. The selectable function list comprises search options, wherein the search options can comprise options such as abnormal keywords, user identifiers, time and the like. For example, if an abnormal keyword is selected in the search option and an acceptance is selected in another search text box corresponding to the abnormal keyword option, the search keyword is determined to be the abnormal keyword acceptance. For example, in addition to selecting an abnormal keyword in a search option and determining an abnormal keyword acceptance, selecting a time in a search option of another search text box, and selecting a date in another search text box corresponding to the time option, the text including the abnormal keyword acceptance in log information corresponding to the date is indicated.
It should be noted that, in addition to the exemplary ways of determining the search keyword, the search keyword may be determined according to other ways.
104, determining target log content in the log content according to the search keywords.
Searching in the log content according to the search keywords; each piece of log information including the search keyword in the log content is taken as target log content matched with the search keyword, and each piece of log information matched with the search keyword is understood to be searched; or the front and back pieces of log information including the search key words in the log content are used as target log content matched with the search key words, which means that after each piece of log information matched with the search key words is searched, the front and back pieces of log information of each piece of log information are used as target log content matched with the search key words, so that further analysis is convenient for developers. It can be understood that the target log content includes a plurality of pieces of log information matched with the search keyword, and the log information of each piece of log is shown in fig. 1 c. The target log content may also be determined according to other means.
And 105, displaying the target log content through a display interface.
And displaying the target log content through a display interface of the log analysis application. The display interfaces are shown in fig. 1e, 1g and 1 h. Specifically, step 105 includes: and acquiring preset abnormal keywords, displaying the target log content through a display interface of the log analysis application, and highlighting the preset abnormal keywords in the target log content.
The preset abnormal keywords comprise common abnormal keywords, and the preset abnormal keywords comprise: outOfMemoryError, inputmismatching exception, threadDeath, sqlexindication, etc. Highlighting preset exception keywords, e.g., highlighting and/or bolding and/or different font colors, etc. The preset abnormal keywords are highlighted, so that the developer can position the abnormal positions in the log information conveniently.
According to the embodiment of the application, the log analysis application installed on the mobile terminal is utilized to convert the log file into the log content corresponding to the display mode supported by the mobile terminal, and the target log content is displayed through the display interface of the log analysis application, so that the log information can be analyzed and processed in real time on the mobile terminal, a developer is separated from the PC end to analyze and process the log information of the user, and the efficiency of log analysis and processing is improved.
Fig. 2 is a method flow chart of a log processing method according to an embodiment of the present application. The log processing method is applied to a mobile terminal, for example, a first terminal where a developer is located, and the log processing method includes steps 201 to 211, specifically may be as follows:
And 201, acquiring an installation package of the log analysis application, and installing the log analysis application into the mobile terminal.
The installation package of the log analysis application is obtained, for example, the installation package of the log analysis application downloaded by other terminals can be obtained from other terminals, or the log analysis application can be directly developed to obtain the installation package of the log analysis application, etc. After the installation package of the log analysis application is acquired, the installation package of the log analysis application is installed. Specifically, a user operation of an installation package of the log analysis application is acquired to trigger the installation of the log analysis application, and the log analysis application is installed in the mobile terminal. When the log analysis application is installed, the function supporting the file opening mode and/or the function supporting the file sending mode are/is opened by default.
202, displaying a log acquisition interface when a log acquisition control of a target application program is triggered.
The target application is an application whose log file needs to be checked, and the target application is already installed in the mobile terminal. There are multiple interfaces on the target application, and a log acquisition control is included on some interface of the target application. For example, when a touch operation of the log acquisition control by the user is detected, the log acquisition control is triggered. And displaying a log acquisition interface when the log acquisition control of the target application program is triggered. Please refer to fig. 1d, and the corresponding description in fig. 1d is omitted herein.
And 203, acquiring user operation through a log acquisition interface to determine log acquisition conditions.
And acquiring user operation through a log acquisition interface to determine log acquisition conditions. For example, a transmission log duration input by the user is acquired to determine the transmission log duration as a log acquisition condition.
204, constructing the log information of the target application program, which meets the log acquisition condition, into a log file.
The log information of the target application may be stored in various ways, for example, by days, specifically, the log information in one day is saved as one log file. This will be described by way of example. If the log obtaining condition is that the log in a plurality of days is obtained, obtaining a plurality of original log files from original log information of the target application program according to the date corresponding to the plurality of days in the log obtaining condition, and compressing the plurality of original log files to construct the log files; alternatively, the plurality of original log files may be constructed as one log file, for example, the text content of the other original log files is appended to the end of the text content of one of the original log files to obtain a file, and then the file is compressed to construct the log file. If the log obtaining condition is that a log of a certain time period in a certain day is obtained, determining an original log file corresponding to the target application program according to a date corresponding to the day in the log obtaining condition, determining log information matched with the time period from the original log file according to the time period, obtaining the log information, storing the log information into an empty file, and compressing the file to construct the log file. The log file may also be constructed in other ways.
It should be noted that, because the log file records the log information of the target application program, the log file includes a large amount of text content, so that the log files of the target application program acquired by the mobile terminal are all compressed log files, so as to reduce the file quantity of the log files, reduce the storage space for storing the log files, and accelerate the network transmission speed of the log files when network transmission is required. Or it may be simply understood that the log file of the target application program obtained by the mobile terminal is generally a compressed log file.
205, after the log file is constructed, a sharing interface is displayed, where the sharing interface includes a call control for calling the log analysis application.
After the log file is constructed, when the log sending control of the target application program is detected to be triggered, the sharing file interface provided by the mobile terminal system is called, and the sharing interface corresponding to the sharing file interface is displayed. Specifically, a sharing file interface is called; acquiring all application programs supporting the function of a file opening mode and/or the function of a file sending mode on a mobile terminal; and displaying a call control for calling the corresponding application program on a sharing interface corresponding to the sharing file interface. Because the log analysis application opens the functions supporting the file opening mode and/or supporting the file sending mode by default during installation, the log analysis application is included on the sharing interface. A call control that invokes the log analysis application is displayed on the sharing interface. Specifically, the sharing interface may be as shown with reference to FIG. 1 d.
206, starting the log analysis application when the call control is triggered to share the log file to the log analysis application.
Specifically, the manner in which the call control is triggered is referred to the description above, and will not be described in detail herein.
207, decompressing the log file by the log analysis application.
Because the log file of the target application program acquired by the mobile terminal is a compressed file in general, the log file of the target application program is decompressed by using the locally installed log analysis application after the acquired log file of the target application program is shared to the log analysis application, so as to obtain the decompressed log file. The file format of the decompressed log file is the same as the file format of the original log file.
And 208, reading the text content of the decompressed log file, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal.
And reading the text content of the decompressed log file by the log analysis application, namely, a text character string, taking the text character string corresponding to the log file as an original log character string, and determining the original log character string as the log content corresponding to the display mode supported by the mobile terminal. It will be appreciated that the mobile terminal must be capable of supporting the display of character strings.
209, obtaining the search keywords through a display interface of the log analysis application.
The log analysis application is correspondingly provided with a display interface, and a retrieval text box is arranged on the display interface. The original log string may be text filtered by entering log filtering rules in the search text box.
When detecting that a retrieval text box on a display interface of the log analysis application is triggered, acquiring a retrieval expression input in the retrieval text box; and determining the search keywords according to the search expression. Wherein the search expression may have various forms. For example, the search expression is a regular expression, and the search expression may be in other forms.
210, determining target log content in the log content according to the search keyword.
Searching in the log content according to the search keywords; each piece of log information including the search keyword in the log content is taken as target log content matched with the search keyword, and each piece of log information matched with the search keyword is understood to be searched; or the front and back pieces of log information including the search key words in the log content are used as target log content matched with the search key words, which means that after each piece of log information matched with the search key words is searched, the front and back pieces of log information of each piece of log information are used as target log content matched with the search key words, so that further analysis is convenient for developers. It is understood that the target log content includes a plurality of pieces of log information matching the search keyword.
211. And displaying the target log content through a display interface.
The presentation interfaces of the log analysis application are shown in fig. 1e, 1g and 1 h. Specifically, a preset abnormal keyword is obtained, target log content is displayed through a display interface of the log analysis application, and the preset abnormal keyword in the target log content is highlighted. Highlighting preset exception keywords, e.g., highlighting and/or bolding and/or different font colors, etc. The preset abnormal keywords are highlighted, so that the developer can position the abnormal positions in the log information conveniently.
For details of the above steps and those corresponding to the steps in fig. 1b, please refer to the descriptions corresponding to the steps in fig. 1b, which are not described herein.
Further, after analyzing the log file, a developer locates the abnormality and/or problem of the target application program, solves the abnormality and/or problem, modifies the computer program of the target application program of the module developed by the developer, and uploads the modified computer program of the target application program to the server of the target application program, so that the server of the target application program packages and encapsulates the target application program, and uploads the packaged target application program to the application store server. The method can also be used for solving the abnormality and/or the problem, modifying the computer program of the target application program of the module developed by the developer, packaging and packaging the file of the target application program, uploading the file to the server of the target application program and the application store server. Uploading to an application store server for other users to download the target application program and use the target application program.
According to the embodiment of the application, the mobile terminal acquires the log file of the local target application program, the acquired log file of the local target application program is converted into the log content corresponding to the display mode supported by the mobile terminal through the installed log analysis application, and the target log content is displayed through the display interface of the log analysis application, so that the log information can be analyzed and processed in real time on the mobile terminal, a developer is separated from a PC end to analyze and process the log information of the user, and the efficiency of log analysis and processing is improved.
Fig. 3 is a method flow chart of a log processing method according to an embodiment of the present application. The log processing method is applied to a mobile terminal, for example, a first terminal where a developer is located, and the log processing method includes steps 301 to 310, specifically may be as follows:
and 301, acquiring an installation package of the log analysis application, and installing the log analysis application into the mobile terminal.
The installation package of the log analysis application is obtained, for example, the installation package of the log analysis application downloaded by other terminals can be obtained from other terminals, or the log analysis application can be directly developed to obtain the installation package of the log analysis application, etc. After the installation package of the log analysis application is acquired, the installation package of the log analysis application is installed. Specifically, a user operation of an installation package of the log analysis application is acquired to trigger the installation of the log analysis application, and the log analysis application is installed in the mobile terminal. When the log analysis application is installed, the function supporting the file opening mode and/or the function supporting the file sending mode are/is opened by default.
302, the mobile terminal obtains a receiving instruction of the log file through the communication application.
Wherein, other terminals can pass: displaying a log acquisition interface when a log acquisition control of a target application program is triggered; acquiring user operation through a log acquisition interface to determine log acquisition conditions; constructing log information of the target application program meeting log acquisition conditions into a log file, so as to acquire the log file of the local target application program; the log file of the target application may also be obtained by the communication application. The method for acquiring the log file of the target application program by the other terminals through the communication application comprises the following steps: other terminals acquire a receiving instruction of the log file through communication application; based on the received instruction, a log file of the target application program is obtained through the communication application. The receiving instruction of the log file may be triggered automatically after the communication application of the other terminal detects the log file, or may be triggered when the communication application of the other terminal receives confirmation receiving information of the user, where the confirmation receiving information is based on the confirmation receiving information triggered by the user of the log file. Based on the received instruction, a log file of the target application program is obtained through the communication application. It will be appreciated that the other terminals may obtain the log file of the target application through the communication application, in which case the target application may or may not be installed on the other terminals.
After acquiring the log file of the target application program, the other terminals can send the log file of the target application program to the mobile terminal through the communication application. Specifically, after acquiring a log file of a target application program, other terminals call a sharing file interface provided by a mobile terminal system when a log sending control of the target application program is triggered; displaying a sharing interface corresponding to the sharing file interface, wherein the sharing interface comprises a calling control for calling the communication application; when a call control for calling the communication application is triggered, the communication application is started, and the log file of the target application program is sent to the mobile terminal through a communication user.
The communication applications include instant messaging applications, mailbox applications, and the like. When the communication friends of the other terminal instant messaging application comprise developers, after the instant messaging application is started, the developers selected by the user in the communication friends can be obtained, and the log files are sent to the mobile terminal where the developers are located through the instant messaging application. When other terminals hold the mailbox of the developer, the mailbox application can be started and then the log file can be sent to the mobile terminal where the developer is located.
In some cases, after acquiring the log file of the target application program, the other terminal may also send the log file of the target application program to the mobile terminal through the target application program. In this case, it is understood that the target application belongs to one of the communication applications, and thus, after the target file of the target application is acquired, the log file of the target application may be directly transmitted through the target application.
After acquiring the log file of the target application program, the other terminals send the log file of the target application program to the mobile terminal through the communication application, and the mobile terminal receives and acquires the log file.
The receiving instruction of the log file may be triggered automatically after the communication application of the mobile terminal detects the log file, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, where the confirmation receiving information is based on the confirmation receiving information triggered by the user of the log file.
303, based on the received instruction, obtaining, by the communication application, a log file of the target application program from the other terminal.
The mobile terminal receives and acquires log files of target application programs from other terminals.
304, after the log file is obtained, displaying a sharing interface based on the opening operation of the user on the log file, wherein the sharing interface comprises a calling control for calling the log analysis application.
After acquiring the log file of the target application from the other terminal, an open operation to the log file may be acquired. For example, the log file is directly touched to perform an opening operation on the log file; touching an opening control at a corresponding position of the log file to open the log file; touching the log file, displaying a file opening interface, displaying an opening control of opening by using other applications on the file opening interface, and triggering the opening control to open the log file; the log file may also be opened by other means. Based on the opening operation of the user on the log file, an opening file interface provided by the mobile terminal system is called, and a sharing interface corresponding to the opening file interface is displayed. The sharing interface includes a call control that invokes the log analysis application. Specifically, calling to open a file interface; acquiring all application programs supporting a file opening mode function and/or a file sending mode function; and displaying a call control for calling the corresponding application program on a sharing interface corresponding to the opened file interface. In this way, call controls that call the log analysis application are displayed on the sharing interface. Specifically, please refer to fig. 1 f.
305, when a call control for calling the log analysis application is triggered, starting the log analysis application to share the log file to the log analysis application.
The manner in which the call control is triggered is referred to the above description, and will not be described herein.
306, decompressing the log file by the log analysis application.
307, reading the text content of the decompressed log file, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal.
308, obtaining the search keywords through a display interface of the log analysis application.
309, determining target log content in the log content according to the search keyword.
And 310, displaying the target log content through a display interface.
For details of the above steps and those not described in detail in the corresponding steps in fig. 1b, please refer to the description in the corresponding steps in fig. 1 b. The steps 306 to 310 correspond to the steps 207 to 211 one by one, and refer to the corresponding descriptions above, and are not repeated here.
Further, after analyzing the log file, a developer locates the abnormality and/or problem of the target application program, solves the abnormality and/or problem, modifies the computer program of the target application program of the module developed by the developer, and uploads the modified computer program of the target application program to the server of the target application program, so that the server of the target application program packages and encapsulates the target application program, and uploads the packaged target application program to the application store server. The method can also be used for solving the abnormality and/or the problem, modifying the computer program of the target application program of the module developed by the developer, packaging and packaging the file of the target application program, uploading the file to the server of the target application program and the application store server. Uploading to an application store server for other users to download the target application program and use the target application program.
According to the embodiment of the application, the mobile terminal acquires the log files of the target application programs from other terminals, the acquired log files of the local target application programs are converted into the log contents corresponding to the display modes supported by the mobile terminal through the installed log analysis application, and the target log contents are displayed through the display interface of the log analysis application, so that the log information can be analyzed and processed in real time on the mobile terminal, a developer can analyze and process the log information of a user by separating from a PC (personal computer) end, and the efficiency of log analysis and processing is improved; meanwhile, the method and the system can check the log files on other terminals at the mobile terminal and analyze and process the contents of the log files on other terminals.
Fig. 4 is a flow chart of a log processing method according to an embodiment of the present application. The log processing method comprises steps 401 to 413, and specifically comprises the following steps:
401, the mobile terminal obtains an installation package of the log analysis application.
The installation package of the log analysis application is obtained, for example, the installation package of the log analysis application downloaded by other terminals can be obtained from other terminals, or the log analysis application can be directly developed to obtain the installation package of the log analysis application, etc. After the installation package of the log analysis application is acquired, the installation package of the log analysis application is installed. Specifically, a user operation of an installation package of the log analysis application is acquired to trigger the installation of the log analysis application, and the log analysis application is installed in the mobile terminal. When the log analysis application is installed, the function supporting the file opening mode and/or the function supporting the file sending mode are/is opened by default.
402, the mobile terminal installs a log analysis application.
And acquiring user operation of an installation package of the log analysis application to trigger the installation of the log analysis application, and installing the log analysis application into the mobile terminal. When the log analysis application is installed, the function supporting the file opening mode and/or the function supporting the file sending mode are/is opened by default.
403, the user terminal obtains the log file of the local target application program.
Displaying a log acquisition interface when a log acquisition control of a target application program is triggered; acquiring user operation through a log acquisition interface to determine log acquisition conditions; and constructing the log information of the target application program, which meets the log acquisition condition, into a log file. A log acquisition control is included on some interface of the target application. For example, when a touch operation of the log acquisition control by the user is detected, the log acquisition control is triggered. And displaying a log acquisition interface when the log acquisition control of the target application program is triggered. And acquiring user operation through a log acquisition interface to determine log acquisition conditions. For example, a transmission log duration input by the user is acquired to determine the transmission log duration as a log acquisition condition. According to the log obtaining conditions, obtaining the log information meeting the log obtaining conditions from the log information of the target application program, and constructing a log file according to the log information meeting the log obtaining conditions. Specifically, please refer to the corresponding description above for the manner of constructing the log file, which is not repeated here.
404, the obtained log file is sent to a communication application server through a communication application.
It is understood that the communication applications include instant messaging applications, mailbox applications, and the like. When the communication friends of the instant messaging application of the other terminals comprise developers, after the instant messaging application is started, the developers selected by the user from the communication friends can be obtained, and the log files are sent to the communication application server through the instant messaging application. When other terminals hold the mailbox of the developer, the mailbox application can be started and then the log file can be sent to the communication application server through the mailbox application.
The mobile terminal obtains 405 a log file from the user terminal.
The mobile terminal obtains a log file from the user terminal from the communication application server. Specifically, the mobile terminal acquires a receiving instruction of a log file through a communication application; based on the received instruction, a log file of the target application program from the other terminal is acquired through the communication application.
The receiving instruction of the log file may be triggered automatically after the communication application of the mobile terminal detects the log file, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, where the confirmation receiving information is based on the confirmation receiving information triggered by the user of the log file. And the mobile terminal acquires a receiving instruction of the log file through the communication application. And receiving, by the communication application, a log file of the target application from the other terminal based on the reception instruction to acquire the log file.
And 406, converting the log file into log content corresponding to the display mode supported by the mobile terminal by using the locally installed log analysis application.
And 407, acquiring the search keywords through a display interface of the log analysis application.
And 408, determining target log contents in the log contents according to the search keywords.
409, displaying the target log content through a display interface.
410, modifying the computer program of the target application program by the target log content.
The developer analyzes the target log content and modifies the computer program of the target application program according to the abnormality and/or problem in the target log content so as to solve the abnormality and/or problem in the target application program and perfect the target application program.
411, uploading the computer program of the modified target application program to the server of the target application program.
And uploading the modified computer program to a server of the target application program to enable the modification to be effective.
412, the server of the target application packages the target application.
It can be appreciated that the target application program is packaged and encapsulated to generate an installation package file of the target application program. Such as APK files of the target application, etc.
413, uploading the packaged target application program to an application store server.
Uploading to an application store server for other users to download the target application program and use the target application program.
The steps 406 to 409 correspond to the steps 102 to 105 in the embodiment of fig. 1b, and refer to the detailed descriptions of the steps 102 to 105 in the embodiment of fig. 1b, which are not repeated here.
According to the method described in the above embodiment, the present embodiment will be further described from the perspective of a log processing apparatus, which may be implemented as a separate entity or may be implemented integrally in a mobile terminal.
Fig. 5 is a schematic block diagram of a log processing device provided by an embodiment of the present application, which is applied to a mobile terminal, for example, a first terminal where a developer is located, where the log processing device includes a file obtaining unit 501, a converting unit 502, a keyword obtaining unit 503, a determining unit 504, and a displaying unit 505. Wherein, the liquid crystal display device comprises a liquid crystal display device,
a file obtaining unit 501, configured to obtain a log file of a target application program by using a mobile terminal.
When the mobile terminal acquires the log file of the local target application, the file acquisition unit 501 is specifically configured to: displaying a log acquisition interface when a log acquisition control of a target application program is triggered; acquiring user operation through a log acquisition interface to determine log acquisition conditions; and constructing the log information of the target application program, which meets the log acquisition condition, into a log file.
When the mobile terminal acquires a log file from a target application on another terminal, the file acquisition unit 501 is specifically configured to: the mobile terminal obtains a receiving instruction of the log file through communication application; based on the received instruction, a log file of the target application program from the other terminal is acquired through the communication application. In this scheme, the mobile terminal and other terminals include communication applications therein.
And the conversion unit 502 is used for converting the log file into log content corresponding to the display mode supported by the mobile terminal by using the locally installed log analysis application.
The mobile terminal obtains a log file, and stores the log file to the mobile terminal, and then the conversion unit 502 is specifically configured to: starting a log analysis application and displaying an interface of the log analysis application; when the fact that a file opening control/file importing control of the log analysis application is triggered is detected on an interface of the log analysis application, a file selection page is displayed; and selecting the saved log file based on user operation on the file selection page, so that the log file is shared to a log analysis application to be converted into log content corresponding to a display mode supported by the mobile terminal by using the locally installed log analysis application.
When the mobile terminal obtains the log file of the local target application, the conversion unit 502 is specifically configured to: after the log file is constructed, a sharing interface is displayed, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the call control is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
When the mobile terminal obtains log files from the target application on other terminals, the conversion unit 502 is specifically configured to: after acquiring the log files of the target application programs from other terminals, displaying a sharing interface based on the opening operation of the user on the log files, wherein the sharing interface comprises a calling control for calling the log analysis application; and when a call control for calling the log analysis application is triggered, starting the log analysis application, and sharing the log file to the log analysis application so as to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
The conversion unit 502 is specifically configured to: using a locally installed log analysis application to decompress log files; and reading the text content of the decompressed log file, and determining the text content of the read log file as the log content corresponding to the display mode supported by the mobile terminal.
The conversion unit 502 is specifically configured to: using a locally installed log analysis application to decompress the log file to obtain log files corresponding to a plurality of modules of the target application program; determining the log files of the modules developed by the corresponding users of the mobile terminal from the log files corresponding to the modules; and determining the log content of the log file of the module developed by the user corresponding to the mobile terminal as the log content corresponding to the display mode supported by the mobile terminal.
The keyword obtaining unit 503 is configured to obtain a search keyword through a presentation interface of the log analysis application.
In an embodiment, the keyword obtaining unit 503 is specifically configured to: when detecting that a retrieval text box on a display interface of the log analysis application is triggered, acquiring a retrieval expression input in the retrieval text box; and determining the search keywords according to the search expression.
In an embodiment, the keyword obtaining unit 503 is specifically configured to: when detecting that a search text box of a display interface of the log analysis application is triggered, displaying a selectable function list; and determining the search keywords according to the selection operation of the user on the selectable function list.
A determining unit 504, configured to determine target log content in the log content according to the search keyword.
Searching in the log content according to the search keywords; taking each piece of log information including the search keyword in the log content as target log content matched with the search keyword; or the front and back pieces of log information including the search key words in the log content are used as target log content matched with the search key words.
And the display unit 505 is configured to display the target log content through a display interface.
The display unit 505 is specifically configured to: and acquiring preset abnormal keywords, displaying the target log content through a display interface of the log analysis application, and highlighting the preset abnormal keywords in the target log content.
In the specific implementation, each unit may be implemented as a separate entity, or may be implemented as the same entity or several entities in any combination. The specific implementation process of the above apparatus and each unit, and the achieved beneficial effects, may refer to the corresponding descriptions in the foregoing method embodiments applied to the nodes of the blockchain, and for convenience and brevity of description, they will not be repeated herein.
The embodiment of the application also provides a mobile terminal, as shown in fig. 6, which shows a schematic structural diagram of the mobile terminal according to the embodiment of the application, specifically:
The mobile terminal may include one or more processing cores 'processors 601, one or more computer-readable storage media's memory 602, radio Frequency (RF) circuitry 603, a power supply 604, an input unit 605, and a display unit 606. It will be appreciated by those skilled in the art that the mobile terminal structure shown in the figures is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 601 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing computer programs such as software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, thereby performing overall detection of the mobile terminal. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 601.
The RF circuit 603 may be configured to receive and transmit signals during the process of receiving and transmitting information, specifically, after receiving downlink information from a base station, the downlink information is processed by one or more processors 601; in addition, data relating to uplink is transmitted to the base station. Typically, the RF circuitry 603 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 603 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The mobile terminal also includes a power supply 604 (e.g., a battery) for powering the various components, and the power supply 604 can be logically coupled to the processor 601 via a power management system, such as a power management system for performing functions such as managing charging, discharging, and power consumption. The power supply 604 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The mobile terminal may further comprise an input unit 605, which input unit 605 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control. In particular, in one particular embodiment, the input unit 605 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 601, and can receive and execute commands sent from the processor 601. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 605 may also include other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The mobile terminal may also include a display unit 606, which display unit 606 may be used to display information entered by or provided to a user as well as various graphical user interfaces of the mobile terminal, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 606 may include a display panel, which may optionally be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, upon detection of a touch operation thereon or thereabout by the touch-sensitive surface, being communicated to the processor 601 to determine the type of touch event, and the processor 601 then providing a corresponding visual output on the display panel based on the type of touch event. Although in the figures the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel for input and output functions.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 601 in the mobile terminal loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 executes the application programs stored in the memory 602, so as to implement various functions as follows:
The mobile terminal acquires a log file of a target application program;
using a locally installed log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal;
acquiring search keywords through a display interface of the log analysis application;
determining target log contents in the log contents according to the search keywords;
and displaying the target log content through the display interface.
The mobile terminal can realize the steps in any embodiment of the log processing method applied to the mobile terminal, so that the beneficial effects which can be realized by any log processing method applied to the mobile terminal, provided by the embodiment of the application, can be realized, and detailed descriptions of the previous embodiments are omitted.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the embodiments of the log processing method for a mobile terminal provided by the embodiment of the present application.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any of the log processing method embodiments provided in the embodiments of the present application, the beneficial effects that any of the log processing methods provided in the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
The above describes in detail a log processing method, a device, a mobile terminal and a computer readable storage medium provided by the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the above description of the embodiments is only for helping to understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (14)

1. A log processing method, comprising:
The mobile terminal acquires a log file of a target application program;
using a locally installed log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal;
acquiring search keywords through a display interface of the log analysis application;
determining target log contents in the log contents according to the search keywords;
displaying the target log content through the display interface;
the step of obtaining the log file of the target application program by the mobile terminal comprises the following steps:
the mobile terminal obtains a receiving instruction of the log file through communication application;
and acquiring log files of the target application programs from other terminals through the communication application based on the receiving instruction.
2. The log processing method as set forth in claim 1, wherein the step of acquiring the log file of the target application program comprises:
displaying a log acquisition interface when a log acquisition control of the target application program is triggered;
acquiring user operation through the log acquisition interface to determine log acquisition conditions;
and constructing the log information of the target application program meeting the log acquisition condition into the log file.
3. The method of log processing according to claim 2, wherein the step of converting the log file into log contents corresponding to a display mode supported by the mobile terminal using a locally installed log analysis application comprises:
after the log file is constructed, a sharing interface is displayed, wherein the sharing interface comprises a calling control for calling the log analysis application;
and when the call control is triggered, starting the log analysis application to convert the log file into log content corresponding to the display mode supported by the mobile terminal.
4. The method of claim 1, wherein the step of converting the log file into log contents corresponding to a display mode supported by the mobile terminal using a locally installed log analysis application comprises:
after acquiring the log files of the target application programs from other terminals, displaying a sharing interface based on the opening operation of a user on the log files, wherein the sharing interface comprises a calling control for calling the log analysis application;
and when the call control is triggered, starting the log analysis application to convert the log file into log content corresponding to the display mode supported by the mobile terminal.
5. The log processing method as set forth in claim 4, wherein the other terminal acquires the log file of the target application program through a communication application and transmits the log file of the target application program to the mobile terminal through the communication application.
6. The log processing method as set forth in claim 5, wherein the other terminal transmits the log file to the mobile terminal through the target application when the target application is a communication application.
7. The method of claim 1, wherein the step of converting the log file into log contents corresponding to a display mode supported by the mobile terminal using a locally installed log analysis application comprises:
decompressing the log file using a locally installed log analysis application;
and determining the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal.
8. The method of claim 7, wherein the decompressed log file includes log files corresponding to a plurality of modules of the target application, and the step of determining log contents of the decompressed log file as log contents corresponding to a display mode supported by the mobile terminal includes:
Determining the log files of the modules developed by the users corresponding to the mobile terminal from the log files corresponding to the modules;
and determining the log content of the log file of the module developed by the user corresponding to the mobile terminal as the log content corresponding to the display mode supported by the mobile terminal.
9. The log processing method as claimed in claim 1, wherein the step of obtaining the search keyword through the presentation interface of the log analysis application comprises:
when detecting that a retrieval text box of a display interface of the log analysis application is triggered, displaying a selectable function list;
and determining the search keywords according to the selection operation of the user on the selectable function list.
10. The log processing method as claimed in claim 1, wherein the step of obtaining the search keyword through the presentation interface of the log analysis application comprises:
when detecting that a retrieval text box on a display interface of the log analysis application is triggered, acquiring a retrieval expression input in the retrieval text box;
and determining the search keywords according to the search expression.
11. The log processing method as claimed in claim 1, wherein the step of displaying the target log content through the display interface comprises:
Acquiring a preset abnormal keyword;
and displaying the target log content through the display interface, and highlighting preset abnormal keywords in the target log content.
12. A log processing apparatus, comprising:
the file acquisition unit is used for acquiring the log file of the target application program by the mobile terminal;
the conversion unit is used for converting the log file into log content corresponding to a display mode supported by the mobile terminal by using a locally installed log analysis application;
the keyword acquisition unit is used for acquiring search keywords through the display interface of the log analysis application;
a determining unit, configured to determine target log content in the log content according to the search keyword;
the display unit is used for displaying the target log content through the display interface;
the file acquisition unit is used for:
the mobile terminal obtains a receiving instruction of the log file through communication application;
and acquiring log files of the target application programs from other terminals through the communication application based on the receiving instruction.
13. A mobile terminal comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the log processing method according to any one of claims 1 to 11.
14. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the log processing method of any of claims 1 to 11.
CN201911327936.4A 2019-12-20 2019-12-20 Log processing method and device, mobile terminal and storage medium Active CN113010482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911327936.4A CN113010482B (en) 2019-12-20 2019-12-20 Log processing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911327936.4A CN113010482B (en) 2019-12-20 2019-12-20 Log processing method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113010482A CN113010482A (en) 2021-06-22
CN113010482B true CN113010482B (en) 2023-09-22

Family

ID=76381790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911327936.4A Active CN113010482B (en) 2019-12-20 2019-12-20 Log processing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113010482B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291509A (en) * 2007-04-19 2008-10-22 株式会社Ntt都科摩 Mobile terminal apparatus and diagnosis method for mobile terminal apparatus
CN104202392A (en) * 2014-08-28 2014-12-10 国家电网公司 Smart electricity inspection mobile terminal system
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN105630682A (en) * 2015-12-28 2016-06-01 珠海金山网络游戏科技有限公司 System and method for automatically collecting and analyzing collapse of mobile terminal
CN106569934A (en) * 2015-10-13 2017-04-19 阿里巴巴集团控股有限公司 Application log display method and device
CN107948385A (en) * 2017-11-28 2018-04-20 上海青橙实业有限公司 A kind of method and apparatus of fault detect
CN109039787A (en) * 2018-09-28 2018-12-18 新华三大数据技术有限公司 log processing method, device and big data cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291509A (en) * 2007-04-19 2008-10-22 株式会社Ntt都科摩 Mobile terminal apparatus and diagnosis method for mobile terminal apparatus
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
CN104202392A (en) * 2014-08-28 2014-12-10 国家电网公司 Smart electricity inspection mobile terminal system
CN106569934A (en) * 2015-10-13 2017-04-19 阿里巴巴集团控股有限公司 Application log display method and device
CN105630682A (en) * 2015-12-28 2016-06-01 珠海金山网络游戏科技有限公司 System and method for automatically collecting and analyzing collapse of mobile terminal
CN107948385A (en) * 2017-11-28 2018-04-20 上海青橙实业有限公司 A kind of method and apparatus of fault detect
CN109039787A (en) * 2018-09-28 2018-12-18 新华三大数据技术有限公司 log processing method, device and big data cluster

Also Published As

Publication number Publication date
CN113010482A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN106302996B (en) Message display method and device
CN108880867A (en) A kind of network equipment collecting method and system
CN110058850B (en) Application development method and device and storage medium
US9742900B2 (en) Method, terminal device and storage medium for displaying information
CN110869907A (en) Method and terminal for browsing application page
CN112148579B (en) User interface testing method and device
CN110865837B (en) Method and terminal for system upgrade
US20200401645A1 (en) Processor-implemented method, computing system and computer program for invoking a search
CN111104180B (en) Application program optimization method and device, storage medium and electronic equipment
CN109800030B (en) Application program running method and device and terminal
CN112749074B (en) Test case recommending method and device
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN111913756B (en) Application program optimizing method, device and system, electronic equipment and storage medium
CN108664389B (en) Test method, test device and terminal
CN106708501B (en) Activity monitoring method and device
CN111158735B (en) Hot patch file processing method and communication terminal
CN113010482B (en) Log processing method and device, mobile terminal and storage medium
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN106933626B (en) Application association method and device
CN109240986B (en) Log processing method and device and storage medium
CN113065083A (en) Page processing method and device, electronic equipment and storage medium
CN114595449A (en) Safety scanning method and device
EP1892620A1 (en) Auditing application activities
CN110659081B (en) File processing method and device for program object and electronic equipment
CN112667993B (en) Scheme evaluation method, device and 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