CN113010482A - Log processing method and device - Google Patents

Log processing method and device Download PDF

Info

Publication number
CN113010482A
CN113010482A CN201911327936.4A CN201911327936A CN113010482A CN 113010482 A CN113010482 A CN 113010482A CN 201911327936 A CN201911327936 A CN 201911327936A CN 113010482 A CN113010482 A CN 113010482A
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.)
Granted
Application number
CN201911327936.4A
Other languages
Chinese (zh)
Other versions
CN113010482B (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

Images

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 method comprises the steps that a mobile terminal obtains a log file of a target application program; 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; acquiring a retrieval keyword through a display interface of a log analysis application; and determining target log content in the log content according to the retrieval key words and displaying the target log content. According to the embodiment of the application, the log file is converted into the log content corresponding to the display mode supported by the mobile terminal by the log analysis application, the target log content is displayed by the log analysis application, the log information can be analyzed and processed in real time at the mobile terminal, developers can analyze and process the log information of users by separating from a PC (personal computer) terminal, and the efficiency of log analysis and processing is improved.

Description

Log processing method and device
Technical Field
The present application relates to the field of data processing, and in particular, to a log processing method and apparatus.
Background
With the development of computer technology, applications on the market are gradually increased, and when a user uses an application, an abnormal situation, an error situation or a crash situation often occurs. The log can record a lot of key information, including error information, debugging information generated during the running of the application program, and other useful state information, running data information, etc.
At present, a developer can obtain log information of a terminal where the developer is located, and if the developer wants to obtain the log information of other user sides, for example, the developer wants to obtain the log information of a terminal corresponding to an insider, the developer usually obtains the log information through a PC side, and the obtained log information can be further analyzed and processed at the PC side. 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 and device, which can enable a developer to analyze and process log information of a user through a mobile terminal.
The embodiment of the application provides a log processing method, which comprises the following steps:
the method comprises the steps that a mobile terminal obtains a log file of a target application program;
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;
acquiring a retrieval keyword through a display interface of a log analysis application;
determining target log content in the log content according to the retrieval key words;
and displaying the target log content through a display interface.
An embodiment of the present application further provides a log processing apparatus, including:
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 the display mode supported by the mobile terminal by using the locally installed log analysis application;
the keyword acquisition unit is used for acquiring retrieval 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 retrieval key words;
and the display unit is used for displaying the target log content through the display interface.
Further, the file obtaining unit is specifically configured to: when a log acquisition control of a target application program is triggered, displaying a log acquisition interface; 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, displaying a sharing interface, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the calling 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 obtaining unit is specifically configured to: the mobile terminal acquires a receiving instruction of the log file through communication application; and acquiring the log file of the target application program from other terminals through the communication application based on the received instruction.
Further, the conversion unit is specifically configured to: after acquiring log files of 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 a log analysis application; and when the calling 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 program is a communication application, the other terminals send the log file to the mobile terminal through the target application program.
Further, the conversion unit is specifically configured to: decompressing the log file using the locally installed log analytics 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.
Further, the conversion unit is specifically configured to: decompressing the log file by using the locally installed log analysis application to obtain log files corresponding to a plurality of modules of the target application program; determining a log file of a module developed by a user corresponding to the mobile terminal from log files corresponding to a plurality of modules; and determining the log content of a log file of a module developed by a user corresponding to the mobile terminal as the log content corresponding to the display mode supported by the mobile terminal.
Further, the keyword obtaining unit is specifically configured to: when detecting that a retrieval text box of a display interface is triggered, displaying a selectable function list; and determining a retrieval keyword according to the selection operation of the user on the selectable function list.
Further, the keyword obtaining 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 a search keyword 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 used for operating the computer program stored in the memory so as to execute any log processing method.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method implements any one of the log processing methods.
According to the method and the device for displaying the target log content, 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, retrieval is carried out through the display interface of the log analysis application based on the log content to determine the target log content, 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 file is converted into the log content corresponding to the display mode supported by the mobile terminal by using the log analysis application installed on 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, developers can analyze and process the log information of users by separating from a PC (personal computer) terminal, and the efficiency of log analysis and processing is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic scene diagram of a log processing method provided in an embodiment of the present application;
fig. 1b is a first flowchart 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 provided in the embodiment of the present application;
fig. 1e is a schematic flowchart illustrating a process of sharing a log file 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 provided in an embodiment of the present application;
fig. 1g is a schematic flowchart of a process of sharing a log file to a log analysis application according to an embodiment of the present disclosure;
fig. 1h is a schematic flowchart of a log processing method provided in an embodiment of the present application;
fig. 2 is a second flow chart of the log processing method provided in the embodiment of the present application;
fig. 3 is a third flow chart of a log processing method according to an embodiment of the present application;
fig. 4 is a fourth flowchart illustrating 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 in 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 technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before explaining the embodiments of the present application in detail, some terms related to the embodiments of the present application will be 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, read the decompressed log file, process the log file through the log analysis application, and display the processed target log content on a 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 for 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 conforms to a certain pattern (rule).
The concept of regular expressions was originally popularized by tool software in Unix (e.g., sed and grep). Regular expression related APIs are provided in many programming languages, such as java. Most functions of a platform (system) of the mobile terminal, such as an Android platform (system), are realized based on java, so that the mobile terminal platform supports regular expression retrieval operation.
The log file of the target application program on the local can be acquired by the mobile terminal, but the log file of the target application program on the local cannot be further analyzed and processed by the mobile terminal. On one hand, the mobile terminal cannot analyze and process the log file, and only can process the log file through the PC end, so that much inconvenience is brought to developers; on the other hand, the user terminal reflects the problem that when a developer is not in front of the PC, the developer cannot acquire the log information of the user terminal in time, so that the problem of the application program cannot be corrected in time through analyzing and processing the log.
In order to solve the above problem, embodiments of the present application provide a log processing method and apparatus, a mobile terminal, and a computer-readable storage medium.
Fig. 1a is a scene schematic diagram of a log processing method provided in 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. And target application programs are installed on the first terminal and the second terminal. In the embodiment of the application, the first terminal obtains 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 also corresponds to the log analysis application.
The first terminal where the developer is located can obtain the log file of the local target application program, and the second terminal where the user is located can also obtain the log file of the local target application program. The second terminal can send the acquired log file of the target application program to the first terminal where the developer is located; for example, via a communication application or the like, to the first terminal where the developer is located. Specifically, when a communication friend of the second terminal communication application comprises a developer, a log file of a target application program of the second terminal can be sent to a 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 can also be sent to the first terminal where the developer is located in other manners. Therefore, 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.
The method comprises the steps that after a first terminal obtains a log file of a target application program, the log analysis application is called to obtain the log file of the target application program, the log analysis application converts the log file into log content corresponding to a display mode supported by the first terminal after obtaining the log file, 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 scene is different from the scene in fig. 1 a: developers have corresponding management authority (the corresponding management authority refers to the authority which can acquire user log files); the first terminal acquires the log file of the target application program of the second terminal in different modes. For example, after detecting that a target application program is abnormal, a second terminal where a user is located sends a log file including abnormal information to a first terminal where a developer corresponding to management authority is located through the target application program, for example, a sending control of 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 abnormal information sent by the second terminal where the user is located based on the abnormal application program, 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 located through the communication application. 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 program; the external network user can directly send the log file to the first terminal through the target application program.
It should be noted that, in the embodiment of the present application, the first terminal where the developer is located refers to a mobile terminal, which includes a mobile phone, a PAD, and other terminals; the second terminal where the user is located may refer to a mobile terminal, such as a terminal including a mobile phone, a PAD, or a non-mobile terminal, such as a terminal including a PC. In the embodiment of the present application, the second terminal where the user is located may also be referred to as another terminal, a user terminal, and the like.
Fig. 1b is a schematic flowchart of a log processing method provided in an embodiment of the present application, where the method is applied to a mobile terminal, for example, a first terminal where a developer is located shown in fig. 1a, the log processing method includes steps 101 to 105, which may specifically be as follows:
101, the mobile terminal acquires a log file of the target application program.
The log file records log information of the target application program, and comprises a large amount of text content. The log information in the log file of the target application program is shown in fig. 1c, and the log information includes information such as time, session identifier, user identifier, error level, and the like. The log file for the target application is typically a text file, such as a txt file.
The mobile terminal (corresponding to the first terminal in fig. 1 a) may obtain a log file of the local target application and may also obtain a log file of the 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, and the log information includes a large amount of text content, which results in large log files, the log files of the target application program acquired by the mobile terminal are all compressed log files, so as to reduce the file amount of the log files and reduce the storage space for storing the log files, and when network transmission is required, the network transmission speed of the log files is accelerated. Or, it can also be simply understood that the log file of the target application acquired by the mobile terminal is generally a compressed log file.
When a terminal (including a mobile terminal) acquires a log file of a local target application, step 101 includes: when a log acquisition control of a target application program is triggered, displaying a log acquisition interface; 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 terminal acquires the log file of the local target application program, wherein the terminal acquires the log file of the local target application program through the mobile terminal where the developer is located, and the second terminal where the user is located acquires the log file of the local target application program. The terminal acquires the log file of the local target application program, and can simply understand that the log file of the local target application program is exported.
The log obtaining control, and the file opening control/file importing control, the call control for calling the log analysis application, the log sending control, and so on (not limited to these controls) may exist in various forms. Such as in the form of buttons, icons, labels, text, or a combination thereof.
The log obtaining control, and the file opening control/file importing control, the call control for calling the log analysis application, the log sending control, and other controls (not limited to these) may be triggered in various ways. For example, when the click/touch operation of the user on the corresponding control is detected, the corresponding control is triggered; the triggering may also be performed in a voice manner, for example, receiving voice information of a user, analyzing the voice information, and if the voice information includes content 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 can also be triggered in other ways. When the corresponding control is triggered, if the corresponding control is not described in detail, the control triggering mode in the corresponding control can be referred to.
And a log acquisition control is included on a certain interface of the target application program. For example, when a touch operation of a user on a log obtaining control is detected, the log obtaining control is triggered. And when the log acquisition control of the target application program is triggered, displaying a log acquisition interface. Referring to fig. 1d, in fig. 1d, an interface corresponding to a gray portion is an example diagram of a log obtaining interface. The log obtaining interface includes information such as an AccountID (user log identifier), a log sending time length, and the like. It should be noted that the log retrieval interface in FIG. 1d is merely an example. The log obtaining interface can also comprise other information, such as information of days and the like, and 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 from the start date. Or the log obtaining interface further includes more information, for example, the date may also include a date indicating a date to which the log information to be obtained belongs, and the sending log duration indicates log information from a:00 to b:00 in the date and from a o 'clock to b o' clock.
And acquiring user operation through a log acquisition interface. The user operation includes all operations on the log obtaining interface, such as input operation, selection operation, and the like. Both the input operation and the selection operation can be performed in various ways. The input operation can be manually input by calling a keyboard interface of the mobile terminal; or the voice interface of the mobile terminal is called to receive and analyze the voice information, automatic input is carried out, and the like. For example, the sending log duration input by the user is acquired. The selection operation can be performed by triggering the corresponding selection control to perform selection, and the like. 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.
And 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 can be stored in various ways, for example, according to the number of days, specifically, the log information in one day is saved as a log file. This case will be described as an example. If the log obtaining condition is that the logs in multiple days are obtained, obtaining multiple original log files from original log information of the target application program according to dates corresponding to the multiple days in the log obtaining condition, and compressing the multiple original log files to construct log files; or the plurality of original log files may be constructed as one log file, for example, the text content of other original log files is appended to the end of the text content of one of the original log files to obtain one file, and then the file is compressed to construct the log file. If the log obtaining condition is that the 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 the 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 a log file. The log file may also be constructed in other ways.
When the mobile terminal acquires a log file from a target application on another terminal (user terminal) (the log file of the target application on the other terminal is already exported), step 101 includes: the mobile terminal acquires a receiving instruction of the log file through communication application; and acquiring the log file of the target application program from other terminals through the communication application based on the received instruction. In this scenario, both the mobile terminal and the other terminals include communication applications.
The other terminals can acquire the log file of the local target application program in the manner 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 a log acquisition condition, and the log information meeting the log acquisition condition of the target application program is constructed into the log file); the log file of the target application program may also be obtained by the communication application. The other terminals obtain the log file of the target application program through the communication application, and the method comprises the following steps: other terminals acquire a receiving instruction of the log file through communication application; and acquiring the log file of the target application program through the communication application based on the received instruction. The log file receiving instruction may be automatically triggered after the log file is detected by the communication application of the other terminal, or may be triggered when the communication application of the other terminal receives the confirmation receiving information of the user, where the confirmation receiving information is the confirmation receiving information triggered by the log file user. And acquiring the log file of the target application program through the communication application based on the received instruction. It is to be understood that other terminals may obtain the log file of the target application program through the communication application, in this case, the target application program may be installed on the other terminals, or the target application program may not be installed on the other terminals, and the other terminals obtain the log file of the target application program sent by another 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 shared file interface provided by other terminal systems 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; and when the calling control for calling the communication application is triggered, starting the communication application, and sending the log file of the target application program to the mobile terminal through the communication user.
Referring to fig. 1d, a log sending control and a "send" button are arranged at the upper right corner of fig. 1 d. And when the sending button is triggered, calling a sharing file interface provided by the mobile terminal system, and displaying a sharing interface corresponding to the sharing file interface. The sharing interface corresponding to the sharing file interface is the 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 the sharing file interface, and the sharing interface includes a call control for calling an icon and a text corresponding to the communication application. And starting the communication application when the calling control corresponding to the calling communication application is triggered.
The communication application comprises an instant communication application, a mailbox application and the like. When the communication friends of the instant messaging applications of other terminals comprise developers, the developers selected by the user in the communication friends can be obtained after the instant messaging applications are started, and the log files are sent to the mobile terminal where the developers are located through the instant messaging applications. When the other terminals hold the mailbox of the developer, the log file can be sent to the mobile terminal where the developer is located through the mailbox application after the mailbox application is started.
In some cases, after acquiring the log file of the target application, the other terminal may further send the log file of the target application to the mobile terminal through the target application. 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 process in which the other terminal sends 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 log file receiving instruction may be automatically triggered after the log file is detected by the communication application of the mobile terminal, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, and the confirmation receiving information is determination receiving information triggered by the user based on the log file. And the mobile terminal acquires a receiving instruction of the log file through the communication application. And receiving the log file of the target application program from other terminals through the communication application based on the receiving instruction to acquire the log file.
And 102, converting the log file into log content corresponding to the display mode supported by the mobile terminal by using a 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 opened by default.
Because log files are compressed files generally, the compressed files cannot be viewed at the mobile terminal, and the compressed log files cannot be further analyzed, the conventional viewing of the compressed log files and the further analysis of the compressed log files are performed at the PC end. According to the embodiment of the application, after the log file is obtained by the mobile terminal, the log file can be 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 locally installed log analysis application is used to convert the log file into the log content corresponding to the display mode supported by the mobile terminal. The log file can be shared to the log analysis application in various modes, so that the log analysis application installed locally is used for converting the log file into log content corresponding to a display mode supported by the mobile terminal.
The first method is as follows: the mobile terminal obtains the log file according to any mode in step 101, and after the log file is stored in the mobile terminal, step 102 includes: starting a log analysis application and displaying an interface of the log analysis application; when detecting that a file opening control/a file import control of the log analysis application is triggered on an interface of the log analysis application, displaying a file selection page; and selecting the saved log file based on user operation on the file selection page, and thus, sharing the log file to the log analysis application so as to convert 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 second method comprises the following steps: when the mobile terminal obtains the log file of the local target application program, step 102 includes: after the log file is constructed, displaying a sharing interface, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the calling control is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal.
After the log file is constructed and obtained, when the log sending control of the target application program is detected to be 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. Specifically, a shared file interface is called; acquiring all application programs of a function supporting a file opening mode and/or a function supporting a file sending mode on the mobile terminal; and displaying the calling control for calling the corresponding application program on the sharing interface corresponding to the sharing file interface. The log analysis application is opened by default at the time of installation to support a file opening mode and/or a file sending mode, so the log analysis application is included in the sharing interface. And displaying a calling control for calling the log analysis application on the sharing interface.
As shown in fig. 1d, a log sending control and a "send" button are arranged at the upper right corner of the log obtaining interface of the target application program. And when the sending button is detected to be triggered, calling a sharing file interface provided by the mobile terminal system, and displaying a sharing interface corresponding to the sharing file interface. As can be appreciated, the sharing interface is a sending 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 the shared file interface, that is, an interface corresponding to "please select sending software" is a sharing interface, and the sharing interface includes an icon and a text corresponding to the log analysis application.
And when a calling control for calling the log analysis application is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal.
As shown in fig. 1e, a schematic flow diagram 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 the log analysis application, and displaying.
The third method comprises the following steps: when the mobile terminal acquires the log file from the target application program on the other terminal, step 102 includes: after acquiring log files of 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 a log analysis application; and when a calling control for calling the log analysis application is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal.
After acquiring the log file of the target application program from the other terminal, an opening operation of the log file may be acquired. For example, directly touching the log file to open the log file; touching an opening control at a position corresponding to the log file to open the log file; the method comprises the steps of touching a 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 can be opened in other ways. And calling an open file interface provided by the mobile terminal system based on the opening operation of the log file by the user, and displaying a sharing interface corresponding to the open file interface. The sharing interface comprises a calling control for calling the log analysis application.
As shown in fig. 1f, the file preview interface (background interface) corresponds to a file opening interface, an opening control (the opening control is not shown in the figure) that is "opened by using another application" is displayed on the file opening interface, the opening control is triggered, an open file interface provided by the mobile terminal system is called, and a sharing interface corresponding to the open file interface is displayed. The sharing interface is an opening interface, and the opening interface comprises a calling control for calling the log analysis application.
Specifically, an open file interface is called; acquiring all application programs of a function supporting a file opening mode and/or a function supporting a file sending mode; and displaying a calling control for calling the corresponding application program on the sharing interface corresponding to the file opening interface. Thus, a call control for calling the log analysis application is displayed on the sharing interface.
The sharing interface is the interface where "select other applications open" in fig. 1 f. Displaying calling controls of all application programs which can open the log file of the mobile terminal on the sharing interface, wherein the calling controls of the application programs comprise icons, characters, options and the like for calling the corresponding application programs; determining a calling control of the log analysis application in the calling controls of the plurality of application programs.
And when a calling control for calling the log analysis application is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal. When the calling control is triggered through clicking/touching operation, an icon of the control can be called through clicking/touching, characters of the control can be called through clicking/touching, options of the control can be called through clicking/touching, and the like.
Further, in the process of sharing the log file to the log analysis application, in addition to the call control for calling the log analysis application being triggered, the corresponding frequency control needs to be triggered, and after the call control and the frequency control are both 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 in the process of sharing the log file to the log analysis application each time, 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 subsequently.
After obtaining log files of target application programs of other terminals, when a second frequency control and a call control are triggered for the first time, the call control is saved, and then when the second time, correspondingly, step 102 includes: after log files of target application programs from other terminals are obtained, the saved calling control is obtained based on the opening operation of a user on the log files, and log analysis application is started according to the calling control so as to convert the log files into log contents corresponding to the display mode supported by the mobile terminal. And acquiring the saved calling control directly based on the user's operation of opening the log file in the second time, and starting the log analysis application according to the calling control. As shown in fig. 1f, the first frequency control and the second frequency control correspond to the "once only" option and the "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 a mobile terminal where a developer is located through instant messaging application, mailbox application and the like, and after the mobile terminal obtains the log file of the target application program from the user terminal, the log file of the target application program from the user terminal is shared to log analysis application through calling an open file interface provided by a mobile terminal system. And further analyzing and processing the log file through the log analysis application, and displaying.
The scheme of the first mode, the second mode and the third mode shares the log file of the target application program to the log analysis application. The scheme in the first mode is that a log file of a target application program is imported through a log analysis application; according to the scheme in the second mode and the third mode, after the log file of the target application program is obtained, the log file of the target application program is shared 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 in a file opening mode. And sharing the log file to the log analysis application so as to further process the log file through 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 displayed.
Specifically, step 102 includes: decompressing the log file using the locally installed log analytics 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.
Since the log file of the target application program acquired by the mobile terminal is a compressed file in general, after the acquired log file of the target application program is shared to the log analysis application, the log analysis application installed locally is used to decompress the log file of the target application program, so as to obtain a decompressed log file. The file format of the decompressed log file is the same as that of the original log file. And reading the log content of the decompressed log file through a 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: decompressing the log file using the locally installed log analytics application; and reading the text content of the decompressed log file, and determining the read text content of the log file as the log content corresponding to the display mode supported by the mobile terminal.
Reading the text content of the decompressed log file through log analysis application, namely obtaining 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 should be understood that, if the file format of the original log file is txt format,. doc format,. docx format, etc., and the mobile terminal supports the display of the file content in these file formats, the file format of the original log file obtained after the log file is decompressed is the format supported by the display mode supported by the mobile terminal. Therefore, 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 the log information of the decompressed log file can be checked through the log analysis application; the file content of the decompressed log file can be directly read by 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 may 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. And if the file format of the original log file obtained after the log file is decompressed is 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 through the log analysis application, and determining the read text content of the 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 view the log information in the decompressed log file through the log analysis application. Specifically, the file content of the decompressed log file is directly read by the log analysis application, and the file content of the log file and the like are checked through a display interface of the log analysis application.
Fig. 1h is a schematic flowchart of a log processing method provided in the embodiment of the present application. As shown in fig. 1h, an interface provided by the mobile terminal system is called, and the log file of the target application program is shared (for example, sent/transferred) to the log analysis application in a file sending manner; or calling an interface provided by the mobile terminal system, and sharing (for example, sending/transferring) the log file to the log analysis application in a file opening mode. Starting a log analysis application, decompressing the compressed log file to the local, 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 string through the log analysis application to obtain a filtered key log character string, and displaying the key log character string on a display interface of the log analysis application. The text filtering is performed on the original log character string, which will be described in detail in the subsequent steps, specifically please refer to the content of the subsequent steps.
And 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 multiple modules in the target application program are developed respectively and the associations between the multiple modules are not large, the log information corresponding to the multiple modules of the target application program can be stored separately to perform log collection respectively, so that each module has an original log file corresponding to the module.
Correspondingly, step 102 includes: decompressing log files by using a locally installed log analysis application, wherein the decompressed log files comprise log files corresponding to a plurality of modules of a target application program; determining a log file of a module developed by a user corresponding to the mobile terminal from log files corresponding to a plurality of 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 mobile terminal corresponding to the user, reading the text content of the log file of the module developed by the mobile terminal corresponding to the user, 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 file of the module developed by the user corresponding to the mobile terminal 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 module identification corresponding to the module.
Therefore, developers only need to pay attention to the log files of the modules developed by the developers, and do not need to pay attention to the log files of other modules, and the safety among the modules of the target application program is improved.
103, obtaining the search keywords through a display interface of the log analysis application.
A display interface is correspondingly arranged in the log analysis application, 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 a search keyword according to the search expression. When the fact that the search text box is touched and the focus is located at the position of the search text box is detected, the fact that the cursor moves to the search text box is shown, and then the search text box on the display interface is determined to be triggered; the retrieval of the text box may also be triggered by other means. When the search text box on the display interface is triggered, the search expression input in the search text box is obtained, and the search keyword is determined according to the search expression. The retrieval 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 symbol, \ is a representation, and data. So the regular expression can match data.dat, data1.dat, data2.dat, data12.dat, datax.dat, dataxyz.dat, etc. The search expression may also be in other forms, such as keyword 1and keyword 2and keyword 3, which means that the search keywords include related keyword 1, keyword 2, and keyword 3.
Specifically, step 103 includes: when detecting that a retrieval text box of a display interface of the log analysis application is triggered, displaying an optional function list; and determining a retrieval keyword according to the selection operation of the user on the selectable function list. The selectable function list includes retrieval options, and the retrieval options may include options such as abnormal keywords, user identifiers, and time. For example, if an abnormal keyword is selected in a search option and an exception is selected in another search text box corresponding to the abnormal keyword option, the search keyword is determined to be the abnormal keyword exception. For example, when a time is selected in a search option of another search text box in addition to selecting an abnormal keyword in the search option and specifying an abnormal keyword exception, and a date is selected in another search text box corresponding to the time option, it means that a text including the abnormal keyword exception is included in log information corresponding to the date is searched.
It should be noted that the search keyword may be determined in other ways than those illustrated.
And 104, determining target log contents in the log contents according to the search keywords.
Searching in the log content according to the search keyword; taking each piece of log information with the log content including the retrieval keyword as target log content matched with the retrieval keyword, and understanding as retrieving each piece of log information matched with the retrieval keyword; or the front and back pieces of log information including the search keyword in the log content are used as the target log content matched with the search keyword, and the front and back pieces of log information of each piece of log information are used as the target log content matched with the search keyword after each piece of log information matched with the search keyword is searched, so that a developer can conveniently perform further analysis. It is understood that, in the target log content, a plurality of pieces of log information matching the search keyword are included, and the log information of each log is as shown in fig. 1 c. The target log content may also be determined according to other means.
105, displaying the target log content through the 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, 1 h. Specifically, step 105, comprises: 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 some common abnormal keywords, including: outofmemoryreror (memory overflow), InputMismatchException (input mismatch exception), threaddetach (thread death), SQLException (SQL exception), and the like. And highlighting the preset abnormal keywords, for example, highlighting and/or bolding and/or displaying in different font colors and the like. And highlighting the preset abnormal key words to further facilitate the positioning of the abnormal positions in the log information by developers.
According to the embodiment of the application, the log file is converted into the log content corresponding to the display mode supported by the mobile terminal by using the log analysis application installed on 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, developers can analyze and process the log information of users by separating from a PC (personal computer) terminal, and the efficiency of log analysis and processing is improved.
Fig. 2 is a schematic method flow diagram 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 includes steps 201 to 211, which may specifically 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 may be obtained, for example, the installation package of the log analysis application downloaded by another terminal may be obtained from another terminal, or the log analysis application may be directly developed to obtain the installation package of the log analysis application. After the installation package of the log analysis application is obtained, the installation package of the log analysis application is installed. Specifically, user operation on an installation package of the log analysis application is acquired to trigger installation of the log analysis application, and the log analysis application is installed 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 opened by default.
202, when the log obtaining control of the target application program is triggered, displaying a log obtaining interface.
The target application is an application whose log file needs to be viewed, and the target application is already installed in the mobile terminal. The target application program is provided with a plurality of interfaces, and a certain interface of the target application program comprises a log acquisition control. For example, when a touch operation of a user on a log obtaining control is detected, the log obtaining control is triggered. And when the log acquisition control of the target application program is triggered, displaying a log acquisition interface. Please refer to fig. 1d and the corresponding description in fig. 1d, which are not repeated herein.
And 203, acquiring a user operation through the 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.
And 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 program can be stored in various ways, for example, according to the number of days, and specifically, the log information in one day is saved as a log file. This case will be described as an example. If the log obtaining condition is that the logs in multiple days are obtained, obtaining multiple original log files from original log information of the target application program according to dates corresponding to the multiple days in the log obtaining condition, and compressing the multiple original log files to construct log files; or the plurality of original log files may be constructed as one log file, for example, the text content of other original log files is appended to the end of the text content of one of the original log files to obtain one file, and then the file is compressed to construct the log file. If the log obtaining condition is that the 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 the 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 a 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, and the log information includes a large amount of text content, which results in large log files, the log files of the target application program acquired by the mobile terminal are all compressed log files, so as to reduce the file amount of the log files and reduce the storage space for storing the log files, and when network transmission is required, the network transmission speed of the log files is accelerated. Or, it can also be simply understood that the log file of the target application acquired 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 and obtained, when the log sending control of the target application program is detected to be 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. Specifically, a shared file interface is called; acquiring all application programs of a function supporting a file opening mode and/or a function supporting a file sending mode on the mobile terminal; and displaying the calling control for calling the corresponding application program on the sharing interface corresponding to the sharing file interface. The log analysis application is opened by default at the time of installation to support a file opening mode and/or a file sending mode, so the log analysis application is included in the sharing interface. And displaying a calling control for calling the log analysis application on the sharing interface. In particular, the sharing interface can be seen in fig. 1 d.
206, when the call control is triggered, the log analysis application is started to share the log file to the log analysis application.
Specifically, please refer to the above description for the manner in which the call control is triggered, which is not described herein again.
And 207, decompressing the log file through the log analysis application.
Since the log file of the target application program acquired by the mobile terminal is a compressed file in general, after the acquired log file of the target application program is shared to the log analysis application, the log analysis application installed locally is used to decompress the log file of the target application program, so as to obtain a decompressed log file. The file format of the decompressed log file is the same as that 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.
Reading the text content of the decompressed log file through log analysis application, namely obtaining 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 able to support the display of character strings.
209, obtaining the search keyword through the display interface of the log analysis application.
A display interface is correspondingly arranged in the log analysis application, 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 a search keyword according to the search expression. The retrieval expression may have various forms. For example, the search expression may be a regular expression, and the search expression may be in other forms.
And 210, determining target log contents in the log contents according to the search keywords.
Searching in the log content according to the search keyword; taking each piece of log information with the log content including the retrieval keyword as target log content matched with the retrieval keyword, and understanding as retrieving each piece of log information matched with the retrieval keyword; or the front and back pieces of log information including the search keyword in the log content are used as the target log content matched with the search keyword, and the front and back pieces of log information of each piece of log information are used as the target log content matched with the search keyword after each piece of log information matched with the search keyword is searched, so that a developer can conveniently perform further analysis. It is to be 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, 1 h. Specifically, preset abnormal keywords are obtained, target log content is displayed through a display interface of the log analysis application, and the preset abnormal keywords in the target log content are highlighted. And highlighting the preset abnormal keywords, for example, highlighting and/or bolding and/or displaying in different font colors and the like. And highlighting the preset abnormal key words to further facilitate the positioning of the abnormal positions in the log information by developers.
For the content of the above steps and corresponding steps in fig. 1b, please refer to the description in corresponding steps in fig. 1b, which is not repeated herein.
Further, after analyzing the log file, the 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 packages the target application program and uploads the packaged target application program to the application store server. And modifying the computer program of the target application program of the module developed by the developer when the abnormity and/or the problem are solved, packaging and packaging the file of the target application program, and uploading the packaged file to the server of the target application program and the application store server. And uploading the target application program to an application store server, so that other users can download the target application program and use the target application program.
According to the method and the device, the mobile terminal obtains the log file of the local target application program, the obtained 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, the target log content is displayed through the display interface of the log analysis application, the log information can be analyzed and processed in real time at the mobile terminal, developers can analyze and process the log information of users by separating from a PC (personal computer) terminal, and the efficiency of log analysis and processing is improved.
Fig. 3 is a schematic method flow diagram 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 includes steps 301 to 310, which may specifically be as follows:
301, obtaining 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 may be obtained, for example, the installation package of the log analysis application downloaded by another terminal may be obtained from another terminal, or the log analysis application may be directly developed to obtain the installation package of the log analysis application. After the installation package of the log analysis application is obtained, the installation package of the log analysis application is installed. Specifically, user operation on an installation package of the log analysis application is acquired to trigger installation of the log analysis application, and the log analysis application is installed 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 opened by default.
302, the mobile terminal obtains a receiving instruction of the log file through the communication application.
Wherein, other terminals can pass: when a log acquisition control of a target application program is triggered, displaying a log acquisition interface; acquiring user operation through a log acquisition interface to determine log acquisition conditions; constructing log information of a target application program, which meets log acquisition conditions, into a log file so as to acquire the log file of a local target application program; the log file of the target application program may also be obtained by the communication application. The other terminals obtain the log file of the target application program through the communication application, and the method comprises the following steps: other terminals acquire a receiving instruction of the log file through communication application; and acquiring the log file of the target application program through the communication application based on the received instruction. The log file receiving instruction may be automatically triggered after the log file is detected by the communication application of the other terminal, or may be triggered when the communication application of the other terminal receives the confirmation receiving information of the user, where the confirmation receiving information is the confirmation receiving information triggered by the log file user. And acquiring the log file of the target application program through the communication application based on the received instruction. It is understood that other terminals may obtain the log file of the target application program through the communication application, in which case, the target application program may be installed on the other terminals, or the target application program 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 shared 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; and when the calling control for calling the communication application is triggered, starting the communication application, and sending the log file of the target application program to the mobile terminal through the communication user.
The communication application comprises an instant communication application, a mailbox application and the like. When the communication friends of the instant messaging applications of other terminals comprise developers, the developers selected by the user in the communication friends can be obtained after the instant messaging applications are started, and the log files are sent to the mobile terminal where the developers are located through the instant messaging applications. When the other terminals hold the mailbox of the developer, the log file can be sent to the mobile terminal where the developer is located through the mailbox application after the mailbox application is started.
In some cases, after acquiring the log file of the target application, the other terminal may further send the log file of the target application to the mobile terminal through the target application. 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 log file receiving instruction may be automatically triggered after the log file is detected by the communication application of the mobile terminal, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, and the confirmation receiving information is determination receiving information triggered by the user based on the log file.
And 303, acquiring the log file of the target application program from other terminals through the communication application based on the received instruction.
The mobile terminal receives and acquires the log files of the target application programs from other terminals.
304, after the log file is obtained, a sharing interface is displayed based on the opening operation of the user on the log file, and the sharing interface includes a call control for calling the log analysis application.
After acquiring the log file of the target application program from the other terminal, an opening operation of the log file may be acquired. For example, directly touching the log file to open the log file; touching an opening control at a position corresponding to the log file to open the log file; the method comprises the steps of touching a 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 can be opened in other ways. And calling an open file interface provided by the mobile terminal system based on the opening operation of the log file by the user, and displaying a sharing interface corresponding to the open file interface. The sharing interface comprises a calling control for calling the log analysis application. Specifically, an open file interface is called; acquiring all application programs of a function supporting a file opening mode and/or a function supporting a file sending mode; and displaying a calling control for calling the corresponding application program on the sharing interface corresponding to the file opening interface. Thus, a call control for calling the log analysis application is displayed on the sharing interface. In particular, please refer to 1 f.
And 305, when a calling control for calling the log analysis application is triggered, starting the log analysis application to share the log file to the log analysis application.
Please refer to the above description for the manner in which the call control is triggered, which is not described herein again.
The log file is decompressed 306 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 the display interface of the log analysis application.
309, according to the search keyword, determining the target log content in the log content.
And 310, displaying the target log content through a display interface.
The above steps and the corresponding steps in fig. 1b are not described in detail, please refer to the description in the corresponding steps in fig. 1 b. Step 306 to step 310 correspond to step 207 to step 211 one to one, and please refer to the corresponding description above, which is not described herein again.
Further, after analyzing the log file, the 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 packages the target application program and uploads the packaged target application program to the application store server. And modifying the computer program of the target application program of the module developed by the developer when the abnormity and/or the problem are solved, packaging and packaging the file of the target application program, and uploading the packaged file to the server of the target application program and the application store server. And uploading the target application program to an application store server, so that other users can download the target application program and use the target application program.
According to the method and the device, the mobile terminal obtains the log files of the target application programs from other terminals, the obtained 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 at the mobile terminal, developers can analyze and process the log information of users by separating from a PC (personal computer) terminal, and the efficiency of log analysis and processing is improved; meanwhile, the log files on other terminals can be checked at the mobile terminal, and the content of the log files on other terminals is analyzed and processed.
Fig. 4 is a schematic flowchart of a log processing method according to an embodiment of the present application. The log processing method comprises steps 401-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 may be obtained, for example, the installation package of the log analysis application downloaded by another terminal may be obtained from another terminal, or the log analysis application may be directly developed to obtain the installation package of the log analysis application. After the installation package of the log analysis application is obtained, the installation package of the log analysis application is installed. Specifically, user operation on an installation package of the log analysis application is acquired to trigger installation of the log analysis application, and the log analysis application is installed 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 opened by default.
402, the mobile terminal installs a log analysis application.
User operation on an installation package of the log analysis application is acquired to trigger installation of the log analysis application, and the log analysis application is installed 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 opened by default.
403, the user terminal obtains the log file of the local target application program.
When a log acquisition control of a target application program is triggered, displaying a log acquisition interface; 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. And a log acquisition control is included on a certain interface of the target application program. For example, when a touch operation of a user on a log obtaining control is detected, the log obtaining control is triggered. And when the log acquisition control of the target application program is triggered, displaying a log acquisition interface. 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. And 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 described herein again.
And 404, sending the acquired log file to a communication application server through the communication application.
It will be appreciated that the communication applications include instant messaging applications, mailbox applications, and the like. When the communication friends of the instant messaging applications of other terminals comprise developers, the developers selected by the user in the communication friends can be obtained after the instant messaging applications are started, and the log files are sent to the communication application server through the instant messaging applications. When the other terminals hold the mailbox of the developer, the log file can be sent to the communication application server through the mailbox application after the mailbox application is started.
The mobile terminal retrieves a log file from the user terminal 405.
The mobile terminal acquires the log file from the user terminal from the communication application server. Specifically, the mobile terminal obtains a receiving instruction of a log file through communication application; and acquiring the log file of the target application program from other terminals through the communication application based on the received instruction.
The log file receiving instruction may be automatically triggered after the log file is detected by the communication application of the mobile terminal, or may be triggered when the communication application of the mobile terminal receives confirmation receiving information of the user, and the confirmation receiving information is determination receiving information triggered by the user based on the log file. And the mobile terminal acquires a receiving instruction of the log file through the communication application. And receiving the log file of the target application program from other terminals through the communication application based on the receiving 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.
407, obtaining the search keyword through a display interface of the log analysis application.
And 408, determining target log contents in the log contents according to the retrieval keywords.
409, displaying the target log content through the display interface.
The computer program of the target application is modified 410 by the target log content.
And the developer analyzes the target log content and modifies the computer program of the target application program according to the abnormity and/or problems in the target log content so as to solve the abnormity and/or problems in the target application program and perfect the target application program.
And 411, uploading the computer program of the modified target application program to a 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.
The server of the target application packages the target application 412.
As can be appreciated, the target application is packaged and encapsulated to generate an installation package file of the target application. Such as an APK file for the target application, etc.
413, uploading the packaged target application program to an application store server.
And uploading the target application program to an application store server, so that other users can 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 one by one, and please refer to the detailed description in the steps 102 to 105 in the embodiment of fig. 1b, which is not repeated herein.
According to the method described in the above embodiments, the present embodiment will be further described from the perspective of a log processing device, which may be specifically implemented as an independent entity or integrated in a mobile terminal.
Fig. 5 is a schematic block diagram of a log processing apparatus provided in an embodiment of the present application, and is applied to a mobile terminal, for example, a first terminal where a developer is located, where the log processing apparatus includes a file obtaining unit 501, a converting unit 502, a keyword obtaining unit 503, a determining unit 504, and a presentation unit 505. Wherein the content of the first and second substances,
a file obtaining unit 501, configured to obtain a log file of a target application program by a mobile terminal.
When the mobile terminal acquires the log file of the local target application, the file acquiring unit 501 is specifically configured to: when a log acquisition control of a target application program is triggered, displaying a log acquisition interface; 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 acquiring unit 501 is specifically configured to: the mobile terminal acquires a receiving instruction of the log file through communication application; and acquiring the log file of the target application program from other terminals through the communication application based on the received instruction. In this scenario, both the mobile terminal and the other terminals include communication applications.
A conversion unit 502, configured to convert the log file into log content corresponding to the display mode supported by the mobile terminal using the locally installed log analysis application.
The mobile terminal obtains the log file, and after the log file is stored in the mobile terminal, the conversion unit 502 is specifically configured to: starting a log analysis application and displaying an interface of the log analysis application; when detecting that a file opening control/a file import control of the log analysis application is triggered on an interface of the log analysis application, displaying a file selection page; and selecting the saved log file based on user operation on the file selection page, and thus, sharing the log file to the log analysis application so as to convert the log file into log content corresponding to the 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, displaying a sharing interface, wherein the sharing interface comprises a calling control for calling the log analysis application; and when the calling control is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal.
When the mobile terminal acquires a log file from a target application program on another terminal, the conversion unit 502 is specifically configured to: after acquiring log files of 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 a log analysis application; and when a calling control for calling the log analysis application is triggered, starting the log analysis application, so that the log file is shared to the log analysis application, and the log file is converted into log content corresponding to a display mode supported by the mobile terminal.
The conversion unit 502 is specifically configured to: decompressing the log file using the locally installed log analytics application; and reading the text content of the decompressed log file, and determining the read text content of the log file as the log content corresponding to the display mode supported by the mobile terminal.
The conversion unit 502 is specifically configured to: decompressing the log file by using the locally installed log analysis application to obtain log files corresponding to a plurality of modules of the target application program; determining a log file of a module developed by a user corresponding to the mobile terminal from log files corresponding to a plurality of modules; and determining the log content of a log file of a module developed by a 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 display 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 a search keyword according to the search expression.
In an embodiment, the keyword obtaining unit 503 is specifically configured to: when detecting that a retrieval text box of a display interface of the log analysis application is triggered, displaying an optional function list; and determining a retrieval keyword according to the selection operation of the user on the selectable function list.
A determining unit 504, configured to determine a target log content in the log content according to the search keyword.
Searching in the log content according to the search keyword; taking each piece of log information with the log content including the search keyword as target log content matched with the search keyword; or a plurality of pieces of log information before and after the log content including the search keyword are used as the target log content matched with the search keyword.
And a presentation unit 505, configured to present the target log content through a presentation 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 specific implementation, the above units may be implemented as independent entities, or may be implemented as one or several entities by any combination. The specific implementation processes 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 node of the block chain, and for convenience and brevity of description, no further description is given here.
An embodiment of the present application further 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 present application, specifically:
the mobile terminal may include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, Radio Frequency (RF) circuitry 603, a power supply 604, an input unit 605, and a display unit 606. Those skilled in the art will appreciate that the mobile terminal architecture shown in the figures is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some of the components may be combined, 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 monitoring the entire mobile terminal. Optionally, processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly 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 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, 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 the processor 601 with access to the memory 602.
RF circuit 603 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for receiving downlink information of a base station and then processing the received downlink information by one or more processors 601; in addition, data relating to uplink is transmitted to the base station. In general, 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), 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), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The mobile terminal also includes a power supply 604 (e.g., a battery) for powering the various components, and preferably, the power supply 604 is logically coupled to the processor 601 via a power management system that provides management of charging, discharging, and power consumption. The power supply 604 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The mobile terminal may further include an input unit 605, and the input unit 605 may be used to receive input numeric or character information and generate a keyboard, mouse, joystick, optical or trackball signal input in relation to user setting and function control. In particular, in a particular embodiment, 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 by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 601, and can receive and execute commands sent by the processor 601. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 605 may include other input devices in addition to a touch-sensitive surface. 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, a mouse, a joystick, and the like.
The mobile terminal may also include a display unit 606, and the display unit 606 may be used to display information input by the user or provided to the user, as well as various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 606 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 601 to determine the type of the touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of the touch event. Although in the figures the touch sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 601 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application program stored in the memory 602, thereby implementing various functions as follows:
the method comprises the steps that a mobile terminal obtains a log file of a target application program;
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;
acquiring a retrieval keyword through a display interface of the log analysis application;
determining target log contents in the log contents according to the retrieval keywords;
and displaying the target log content through the display interface.
The mobile terminal may implement the steps in any embodiment of the log processing method applied to the mobile terminal provided in the embodiment of the present application, and therefore, the beneficial effects that any log processing method applied to the mobile terminal provided in the embodiment of the present application can implement may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, 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, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps of any embodiment of the log processing method applied to the mobile terminal provided in the embodiment of the present application.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any log processing method embodiment provided in the present application embodiment, beneficial effects that can be achieved by any log processing method provided in the present application embodiment can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is given to a log processing method, a log processing device, a mobile terminal, and a computer-readable storage medium, which are provided by the embodiments of the present application, and a specific example is applied in the description to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A log processing method, comprising:
the method comprises the steps that a mobile terminal obtains a log file of a target application program;
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;
acquiring a retrieval keyword through a display interface of the log analysis application;
determining target log contents in the log contents according to the retrieval keywords;
and displaying the target log content through the display interface.
2. The log processing method of claim 1, wherein the step of obtaining the log file of the target application comprises:
displaying a log acquisition interface when the 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, which meets the log acquisition condition, into the log file.
3. The log processing method according to claim 2, wherein the step of converting the log file into log contents corresponding to the display mode supported by the mobile terminal using the locally installed log analysis application comprises:
after the log file is constructed, displaying a sharing interface, wherein the sharing interface comprises a calling control for calling the log analysis application;
and when the calling control is triggered, starting the log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
4. The log processing method of claim 1, wherein the step of the mobile terminal acquiring the log file of the target application program comprises:
the mobile terminal acquires a receiving instruction of the log file through communication application;
and acquiring the log files of the target application programs from other terminals through the communication application based on the receiving instruction.
5. The log processing method according to claim 4, wherein the step of converting the log file into log contents corresponding to the display mode supported by the mobile terminal using the locally installed log analysis application comprises:
after obtaining 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 calling control is triggered, starting the log analysis application to convert the log file into log content corresponding to a display mode supported by the mobile terminal.
6. The log processing method of claim 5, 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.
7. The log processing method of claim 6, wherein when the target application is a communication application, the other terminal transmits the log file to the mobile terminal through the target application.
8. The log processing method according to claim 1, wherein the step of converting the log file into log contents corresponding to the display mode supported by the mobile terminal using the locally installed log analysis application comprises:
decompressing the log file using a locally installed log analytics 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.
9. The log processing method according to claim 8, wherein the decompressed log file includes log files corresponding to a plurality of modules of the target application program, and the step of determining the log content of the decompressed log file as the log content corresponding to the display mode supported by the mobile terminal comprises:
determining a log file of a module developed by a user corresponding to the mobile terminal from 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.
10. The log processing method according to claim 1, wherein the step of obtaining the search keyword through the presentation interface of the log analysis application comprises:
displaying a selectable function list when detecting that a retrieval text box of a display interface of the log analysis application is triggered;
and determining a retrieval keyword according to the selection operation of the user on the selectable function list.
11. The log processing method according to 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 a search keyword according to the search expression.
12. The log processing method of claim 1, wherein the step of presenting the target log content through the presentation 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.
13. 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 a search keyword 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 retrieval key words;
and the display unit is used for displaying the target log content through the display interface.
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 true CN113010482A (en) 2021-06-22
CN113010482B 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
CN113010482B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US11003331B2 (en) Screen capturing method and terminal, and screenshot reading method and terminal
US8700006B2 (en) Method and system for recommending content among mobile phone users
US9942690B2 (en) Method and device for information push
CN106302996B (en) Message display method and device
US20100161506A1 (en) Mobile device and method for providing logging and reporting of user-device interaction
KR20040053166A (en) Selective media capture via a communication device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN110637290A (en) File management method and device
CN108572908B (en) Information feedback method and device
CN107436948B (en) File searching method and device and terminal
US20150030146A1 (en) Method, terminal device and storage medium for displaying information
CN109800030B (en) Application program running method and device and terminal
CN108984374B (en) Method and system for testing database performance
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
WO2022127743A1 (en) Content display method and terminal device
CN110609957A (en) Method, terminal and server for global search
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN113010482B (en) Log processing method and device, mobile terminal and storage medium
CN110198324B (en) Data monitoring method and device, browser and terminal
CN106933626B (en) Application association method and device
KR20170054497A (en) Information display method, terminal and server
CN114125139A (en) Information processing method and electronic device
CN110489679B (en) Browser kernel processing method and device and storage medium
CN113065083A (en) Page processing method and device, electronic equipment and storage medium
CN113760946A (en) Pre-verification processing method, device, equipment and medium applied to data source migration

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