CN105204969B - Abnormal log processing method and abnormal log processing unit - Google Patents
Abnormal log processing method and abnormal log processing unit Download PDFInfo
- Publication number
- CN105204969B CN105204969B CN201410307211.XA CN201410307211A CN105204969B CN 105204969 B CN105204969 B CN 105204969B CN 201410307211 A CN201410307211 A CN 201410307211A CN 105204969 B CN105204969 B CN 105204969B
- Authority
- CN
- China
- Prior art keywords
- abnormal
- abnormal log
- application
- mobile terminal
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of abnormal log processing method of present invention offer and abnormal log processing unit.The abnormal log processing method applies abnormal signal including detection, and according to using abnormal signal, system information, application message and the call stack information of mobile terminal when record is using exception;According to the system information of mobile terminal, application message and call stack information, generates and apply the relevant abnormal log of abnormal signal, and abnormal log is stored in mobile terminal;And it when application starts, reads and shows abnormal log.The present invention also provides a kind of abnormal log processing units.The abnormal log processing method and abnormal log processing unit of the present invention generates abnormal log according to application abnormal signal, and directly the abnormal log is stored in mobile terminal, easily abnormal log can be checked using tester, improved using abnormal treatment effeciency.
Description
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of abnormal log processing method and abnormal log processing dress
It sets.
Background technology
With the continuous development of mobile terminal technology, more and more users use the various applications of mobile terminal to carry out
Information exchange.But it applies in use it is possible that various problem, such as incompatible with mobile terminal device
Deng.
Existing mobile terminal is to the processing method of the above problem:There is abnormal or collapse in certain application in the terminal
When, corresponding abnormal log can be generated, and by the abnormal log upload server of generation or can be retained in the machine.But it is in
Security consideration, above-mentioned abnormal log can only be checked by specific software or be logged on to the abnormal log of corresponding operating system
It is checked on server (the abnormal log server has carried out corresponding dissection process to the abnormal log of upload).
Apply tester can not be conveniently in the abnormal log for getting the application at the first time, or application in this way
Tester needs to check abnormal log using different software for different operating system.Therefore it greatly reduces
Using tester to the abnormal treatment effeciency of application.
Invention content
The embodiment of the present invention provides a kind of abnormal log processing side for facilitating, efficiently being handled abnormal log
Method, the technical problem that the treatment effeciency to solve existing abnormal log processing method is low and compatibility is poor.
The embodiment of the present invention also provides a kind of abnormal log processing dress conveniently, efficiently handled abnormal log
It sets, the technical problem that the treatment effeciency to solve existing abnormal log processing unit is low and compatibility is poor.
To solve the above problems, technical solution provided by the invention is as follows:
The embodiment of the present invention provides a kind of abnormal log processing method comprising:
Abnormal signal is applied in detection, and applies abnormal signal according to described, and mobile terminal when record application is abnormal is
System information, application message and call stack information;
According to the system information of the mobile terminal, application message and call stack information, generate abnormal with the application
The relevant abnormal log of signal, and the abnormal log is stored in the mobile terminal;And
When the application starts, reads and show the abnormal log.
The embodiment of the present invention also provides a kind of abnormal log processing unit comprising:
Logging modle applies abnormal signal for detecting, and applies abnormal signal according to described, when record application is abnormal
System information, application message and the call stack information of mobile terminal;
Memory module, for according to the system information of the mobile terminal, application message and call stack information, generate with
The relevant abnormal log of the application abnormal signal, and the abnormal log is stored in the mobile terminal;And
Display module, for when the application starts, reading and showing the abnormal log.
Abnormal log processing method compared to the prior art and abnormal log processing unit, the exception of the embodiment of the present invention
Log processing method and abnormal log processing unit generate abnormal log according to application abnormal signal, and directly by the abnormal log
It is stored in mobile terminal, easily abnormal log can be checked using tester, improve using abnormal processing
Efficiency;The treatment effeciency for solving existing abnormal log processing method and abnormal log processing unit is low and compatible poor
The technical issues of.
Description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the abnormal log processing method of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the abnormal log processing method of the present invention;
Fig. 3 is the structural schematic diagram of the first preferred embodiment of the abnormal log processing unit of the present invention;
Fig. 4 is the structural schematic diagram of the second preferred embodiment of the abnormal log processing unit of the present invention;
Fig. 5 is the sequence diagram of the specific embodiment of the abnormal log processing method of the present invention.
Specific implementation mode
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will be referred to by the operation performed by one or multi-section computer
The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation be will appreciate that, carried for several times wherein having
Include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern to be executed by computer
Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match again
It sets or in addition changes the running of the computer in a manner familiar to those skilled in the art.The data knot that the data are maintained
Structure is the provider location of the memory, has the specific feature defined in the data format.But the principle of the invention is with above-mentioned
Word illustrates, is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and
Operation also may be implemented in hardware.
" component ", " module ", " system ", " interface ", " process " etc. are usually intended to as used herein the term
Refer to computer related entity:Hardware, the combination of hardware and software, software or software in execution.For example, component can be but not
It is limited to run process on a processor, processor, object, executable application, thread, program and/or the computer executed.
By diagram, both the application and the controller run on the controller can be component.One or more components can have
It is in the process executed and/or thread, and component can be located on a computer and/or be distributed in two or more meters
Between calculation machine.
Moreover, claimed theme may be implemented as generating software using standard program and/or engineering technology, consolidate
The method, apparatus or manufacture of disclosed theme are realized in part, hardware or its arbitrary combination with control computer.It is used herein
Term " manufacture " be intended to comprising can be from arbitrary computer readable device, carrier or the computer program of medium access.Certainly,
Those skilled in the art will appreciate that many modifications can be carried out to the configuration, without departing from claimed theme range or
Spirit.
There is provided herein the various operations of embodiment.In one embodiment, one or more operations can be with structure
At the computer-readable instruction stored on one or more computer-readable mediums, will make to succeed in one's scheme when being executed by electronic equipment
It calculates equipment and executes the operation.Describing the sequences of some or all of operations, to should not be construed as to imply that these operations necessarily suitable
Sequence is relevant.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that
Not all operation must exist in each embodiment provided in this article.
Moreover, word " preferred " used herein means serving as example, example or illustration.Feng Wen is described as " preferably
" any aspect or design be not necessarily to be construed as than other aspect or design it is more advantageous.On the contrary, the use purport of word " preferred "
Concept is being proposed in specific ways.Term "or" as used in this application is intended to mean the "or" for including and non-excluded
"or".That is, unless specified otherwise or clear from the context, " X uses A or B " means that nature includes any one of arrangement.
That is, if X uses A;X uses B;Or X uses A and B both, then " X uses A or B " is met in aforementioned any example.
Moreover, although the disclosure, this field skill has shown and described relative to one or more realization methods
Art personnel will be appreciated that equivalent variations and modification based on the reading and understanding to the specification and drawings.The disclosure include it is all this
The modifications and variations of sample, and be limited only by the scope of the following claims.In particular, to by said modules (such as element,
Resource etc.) various functions that execute, the term for describing such component is intended to correspond to the specified work(for executing the component
The random component (unless otherwise instructed) of energy (such as it is functionally of equal value), even if illustrated herein with execution in structure
The disclosure exemplary implementations in function open structure it is not equivalent.In addition, although the special characteristic of the disclosure
Through being disclosed relative to the only one in several realization methods, but this feature can with such as can be to given or specific application
For be it is expected and one or more other features combinations of other advantageous realization methods.Moreover, with regard to term " comprising ", " tool
Have ", " containing " or its deformation be used in specific implementation mode or claim for, such term be intended to with term
The similar mode of "comprising" includes.
It can be directly in quilt using the abnormal log processing method and abnormal log processing unit of the present invention using tester
The processing of abnormal log is carried out on the mobile terminal of test.Therefore abnormal log need not be checked using specific software or
Log on to and abnormal log is checked on corresponding abnormal log server, to improve tester to abnormal log
Treatment effeciency.And due to the generation that can customize abnormal log, the compatibility of the abnormal log generated is higher.The present invention
Abnormal log processing method and abnormal log processing unit preferably in mobile phone, tablet computer, personal digital assistant (PDA)
Or implement on the electronic equipments such as media player, certain abnormal log processing method and abnormal log processing unit can also be used for
In the stationary electronic devices such as other personal computers and server computer.
Fig. 1 is please referred to, Fig. 1 is the flow chart of the first preferred embodiment of the abnormal log processing method of the present invention.This is excellent
The abnormal log processing method of embodiment is selected to include:
Step S101, abnormal signal is applied in detection, and according to using abnormal signal, records mobile terminal when application exception
System information, application message and call stack information;
Step S102 is generated abnormal with application according to the system information of mobile terminal, application message and call stack information
The relevant abnormal log of signal, and abnormal log is stored in mobile terminal;
Step S103 reads when application starts and shows abnormal log.
The following detailed description of the detailed process of each step of the abnormal log processing method of this preferred embodiment.
In step S101, abnormal signal is applied in the detection of abnormal log processing unit, this is that application is different using abnormal signal
It often exits or when abnormal collapse, the signal that the system of mobile terminal is sent out, such as termination signal (SIGABRT), illegal command signal
(SIGILL), invalid storage calling-on signal (SIGSEGV), operation mistake signal (SIGFPE), hardware anomalies signal (SIGBUS),
Channel abnormal signal (SIGPIPE) and unit exception callback signal (NSSetUncaughtExceptionHandler) etc..
Subsequent abnormal log processing unit is according to the abnormal signal of applying detected, mobile terminal when record application is abnormal
System information, application message and call stack information.Here the system information of mobile terminal includes the hardware letter of mobile terminal
Cease the software information (such as system type information and system version information) of (such as iphone, ipad) and mobile terminal.
Application message includes the version information etc. of application name and application.The function of per thread when call stack information includes application operation
The information such as scene and local variable are called in recalls information, including function parameter, return address.It is logical to be normally applied tester
Crossing call stack information connected applications information and system information preferably abnormal to application can carry out dissection process.Then turn
To step S102.
In step s 102, abnormal log processing unit according to the system information of the mobile terminal recorded in step S101,
Application message and call stack information generate and apply the relevant abnormal log of abnormal signal with this.The abnormal log can directly be remembered
Above system information, application message and call stack information are recorded, above system information, application message and call stack can also be believed
Breath generates corresponding abnormal log after carrying out classified compression.If any the call stack information of multiple threads, the tune of which part thread
Do not carry out complete documentation (call stack information is caused to lose when such as application is exited) with stack information, it can be by the part call stack information
It deletes, or the priority level of the part call stack information is turned down.Then the abnormal log of generation is stored in mobile terminal
In internal storage.Then pass to step S103.
In step s 103, using tester when mobile terminal is carried out using starting, abnormal log processing unit meeting
The abnormal log being stored in mobile terminal is read, and abnormal log is supplied to using test by the display screen of mobile terminal
Personnel.Dissection process can be carried out using tester by the way that the abnormal log is abnormal to application.
The abnormal log processing procedure of the abnormal log processing method of this preferred embodiment is completed in this way.
The abnormal log processing method of this preferred embodiment generates abnormal log according to application abnormal signal, and directly should
Abnormal log is stored in abnormal terminals, can easily be carried out checking parsing to abnormal log using tester, be improved and answer
With abnormal treatment effeciency.
Fig. 2 is please referred to, Fig. 2 is the flow chart of the second preferred embodiment of the abnormal log processing method of the present invention.This is excellent
The abnormal log processing method of embodiment is selected to include:
Step S201, abnormal signal is applied in detection, and according to using abnormal signal, records mobile terminal when application exception
System information, application message and call stack information;
Step S202 is generated abnormal with application according to the system information of mobile terminal, application message and call stack information
The relevant abnormal log of signal, and abnormal log is stored in mobile terminal;
Whether step S203 is abnormal by the preceding primary operation of abnormal log detection application;It such as detects using preceding primary fortune
Row is abnormal, then goes to step S204, such as detects using a preceding normal operation, then goes to step S205;
Step S204 reads and shows abnormal log;
Step S205 is normal to start application.
The following detailed description of the detailed process of each step of the abnormal log processing method of this preferred embodiment.
In step s 201, abnormal signal is applied in abnormal log processing unit detection, this is that application is different using abnormal signal
It often exits or when abnormal collapse, the signal that the system of mobile terminal is sent out.
Subsequent abnormal log processing unit is according to the abnormal signal of applying detected, mobile terminal when record application is abnormal
System information, application message and call stack information.Specifically:
When detecting using abnormal signal, abnormal log processing unit can adjust back the multidate information of application, i.e., will
The multidate information of application restores the nearest record point to before being generated using abnormal signal.Here the multidate information of application is applied
The middle revisable information of user, the modification just because of multidate information in application lead to the multidate information in applying and static information
Incompatible or information run-time error, therefore can avoid occurring using different when application is run again after multidate information is adjusted back
Often.
Subsequent abnormal log processing unit records mobile terminal when applying abnormal during the readjustment of multidate information
System information, application message and call stack information.Then pass to step S202.
In step S202, abnormal log processing unit according to the system information of the mobile terminal recorded in step S201,
Application message and call stack information generate and apply the relevant abnormal log of abnormal signal with this.The abnormal log can directly be remembered
Above system information, application message and call stack information are recorded, above system information, application message and call stack can also be believed
Breath generates corresponding abnormal log after carrying out classified compression.If any the call stack information of multiple threads, the tune of which part thread
Do not carry out complete documentation (call stack information is caused to lose when such as application is exited) with stack information, it can be by the part call stack information
It deletes, or the priority level of the call stack information of the part is turned down.Then the abnormal log of generation is stored in mobile terminal
Internal storage in.Then pass to step S203.
In step S203, when using starting, whether the preceding primary operation of abnormal log processing unit detection application is abnormal, such as
It detects using a preceding operation exception, then goes to step S204;It such as detects using a preceding normal operation, then goes to step
S205。
In step S204, due to detecting using a preceding operation exception, it may need to answer this using tester
It is handled with abnormal, therefore when mobile terminal is carried out using starting, abnormal log processing unit can read and be stored in movement
Abnormal log in terminal, and abnormal log is supplied to using tester by the display screen of mobile terminal.Concretely:
Abnormal log processing unit reads all abnormal logs in mobile terminal, to show the list of abnormal log,
The list of the abnormal log can show all abnormal logs of record, and for application, tester carries out anomaly analysis.
Subsequent abnormal log processing unit receive selection instruction (i.e. user by mobile terminal send out to different in list
Chang Zhi carries out the instruction that selection is checked), and the details for reading and showing corresponding abnormal log are instructed according to the selection,
The details of the wherein abnormal log include the system information of the corresponding mobile terminal of selected abnormal log, application message
And call stack information.It can be by the details of the abnormal log to the abnormal progress dissection process of application using tester.
In step S205, such as detect that then abnormal log processing unit normally answer by startup using a preceding normal operation
With, such as need to check abnormal log using tester, can by send out check request check be stored in it is different in mobile terminal
Chang Zhi.
The abnormal log processing procedure of the abnormal log processing method of this preferred embodiment is completed in this way.
The abnormal log processing method of this preferred embodiment is dynamic to what is applied extremely on the basis of first preferred embodiment
State information carries out readjustment and is configured to the automatic reading display of abnormal log, further improves using abnormal processing
Efficiency.
The present invention also provides a kind of abnormal log processing units, please refer to Fig. 3, and Fig. 3 is the abnormal log processing of the present invention
The structural schematic diagram of the first preferred embodiment of device.The abnormal log processing unit 30 of this preferred embodiment includes logging modle
31, memory module 32 and display module 33, logging modle 31 apply abnormal signal 34 for detecting, and according to the abnormal letter of application
Numbers 34, system information, application message and the call stack information of mobile terminal when record application is abnormal;Memory module 32 is used for
According to the system information of mobile terminal, application message and call stack information, generates and apply 34 relevant exception of abnormal signal
Daily record, and the abnormal log is stored in mobile terminal;Display module 33 is used to, when application starts, read and show different
Chang Zhi.
The abnormal log processing unit 30 of this preferred embodiment is in use, abnormal signal is applied in the detection of logging modle 31 first
34, this is to be exited or when abnormal collapse using abnormal using abnormal signal 34, and the signal that the system of mobile terminal is sent out such as terminates
Signal (SIGABRT), illegal command signal (SIGILL), invalid storage calling-on signal (SIGSEGV), operation mistake signal
(SIGFPE), hardware anomalies signal (SIGBUS), channel abnormal signal (SIGPIPE) and unit exception callback signal
(NSSetUncaughtExceptionHandler) etc..
Subsequent logging modle 31 is according to the abnormal signal of applying detected, the system of mobile terminal when record application is abnormal
Information, application message and call stack information.Here the system information of mobile terminal include the hardware information of mobile terminal (such as
Iphone, ipad etc.) and mobile terminal software information (such as system type information and system version information).Using letter
Breath includes the version information etc. of application name and application.The function call letter of per thread when call stack information includes application operation
The information such as scene and local variable are called in breath, including function parameter, return address.It is normally applied tester and passes through calling
Stack information connected applications information and system information preferably abnormal to application can carry out dissection process.
Then system information, application message and the calling for the mobile terminal that memory module 32 is recorded according to logging modle 31
Stack information generates and applies the relevant abnormal log of abnormal signal with this.The abnormal log can directly record above system information, answer
With information and call stack information, after also can carrying out classified compression to above system information, application message and call stack information
Generate corresponding abnormal log.If any the call stack information of multiple threads, the call stack information of which part thread has not carried out
Complete record (such as applies the when of exiting that call stack information is caused to lose), can be by the call stack information deletion of non-complete documentation, or incites somebody to action
The priority level of the call stack information of non-complete documentation is turned down.Then the abnormal log of generation is stored in the inside of mobile terminal
In memory.
Finally apply tester when mobile terminal is carried out using starting, display module 33, which can be read, is stored in movement eventually
Abnormal log in end, and abnormal log is supplied to using tester by the display screen of mobile terminal.Using tester
Member can carry out dissection process by the way that the abnormal log is abnormal to application.
The abnormal log processing procedure of the abnormal log processing unit 30 of this preferred embodiment is completed in this way.
The abnormal log processing unit of this preferred embodiment generates abnormal log according to application abnormal signal, and directly should
Abnormal log is stored in abnormal terminals, can easily be carried out checking parsing to abnormal log using tester, be improved and answer
With abnormal treatment effeciency.
Fig. 4 is please referred to, Fig. 4 is the structural schematic diagram of the second preferred embodiment of the abnormal log processing unit of the present invention.
The abnormal log processing unit 40 of this preferred embodiment includes logging modle 41, memory module 42 and display module 43.At this
In the abnormal log processing unit 40 of preferred embodiment, which includes abnormality detecting unit 431, display unit 432
And start unit 433 is detected by abnormal log when abnormality detecting unit 431 is used for application startup and applies preceding primary operation
It is whether abnormal;Display unit 432 is for reading and showing abnormal log;Start unit 433 is applied for normally starting.
Display unit 432 includes that list display subelement and details show that subelement, list display subelement are used for
All abnormal logs in mobile terminal are read, to show the list of abnormal log;Details show subelement for connecing
Selection instruction is received, and the details of corresponding abnormal log are read and shown according to selection instruction, wherein abnormal log is detailed
Thin information includes the system information, application message and call stack information of mobile terminal corresponding with abnormal log.
Logging modle 41 includes readjustment unit 411 and recording unit 412, and readjustment unit 411 is used for the dynamic to application
Information is adjusted back, and the multidate information of application is specially restored to the nearest record point to before being generated using abnormal signal 44;Note
It records unit 412 to be used for during readjustment, system information, application message and the calling of mobile terminal when record application is abnormal
Stack information.
The abnormal log processing unit 40 of this preferred embodiment is in use, abnormal signal is applied in the detection of logging modle 41 first
44, this is to be exited or when abnormal collapse using abnormal using abnormal signal 44, the signal that the system of mobile terminal is sent out.
Subsequent logging modle 41 applies abnormal signal 44 according to what is detected, and mobile terminal when record application is abnormal is
System information, application message and call stack information.Specifically:
When detecting using abnormal signal 44, the readjustment unit 411 of logging modle 41 can carry out the multidate information of application
The multidate information of application is restored the nearest record point to before being generated using abnormal signal 44 by readjustment.Here application is moved
The revisable information of user during state information is applied, the modification just because of multidate information in application cause the dynamic in applying to be believed
Breath with static information is incompatible or information run-time error, therefore when can avoid application after multidate information is adjusted back and running again
It is abnormal to there is application.
The recording unit 412 of subsequent logging modle 41 is during the readjustment of multidate information, shifting when record application is abnormal
System information, application message and the call stack information of dynamic terminal.
Then system information, application message and the call stack for the mobile terminal that memory module 42 is recorded according to logging modle
Information generates and applies 44 relevant abnormal log of abnormal signal with this.The abnormal log can directly record above system information, answer
With information and call stack information, after also can carrying out classified compression to above system information, application message and call stack information
Generate corresponding abnormal log.If any the call stack information of multiple threads, the call stack information of which part thread has not carried out
Complete record (such as applies the when of exiting that call stack information is caused to lose), can be by the call stack information deletion of non-complete documentation, or incites somebody to action
The priority level of the call stack information of non-complete documentation is turned down.Then the abnormal log of generation is stored in the inside of mobile terminal
In memory.
When using starting, whether the preceding primary operation of the detection application of abnormality detecting unit 431 of display module 43 is abnormal,
It such as detects using a preceding operation exception, may need to handle the application extremely using tester,
Therefore when mobile terminal is carried out using starting, the display unit 432 of display module 43, which can be read, to be stored in mobile terminal
Abnormal log, and abnormal log is supplied to using tester by the display screen of mobile terminal.Concretely:
The list display subelement of display unit 432 reads all abnormal logs in mobile terminal, to show exception
The list of the list of daily record, the abnormal log can show all abnormal logs of record, so that application tester's progress is different
Often analysis.
The details of subsequent display unit 432 show that (i.e. user is sent out subelement reception selection instruction by mobile terminal
What is gone out carries out the instruction that selection is checked to the abnormal log in list), and reading is instructed according to the selection and is shown corresponding different
The details of the details of Chang Zhi, the wherein abnormal log include the corresponding mobile terminal of selected abnormal log
System information, application message and call stack information.It can be by the details of the abnormal log to application using tester
It is abnormal to carry out dissection process.
Such as detect that then the normally startup application of the start unit 433 of display module 43, is such as answered using a preceding normal operation
It is needed to check abnormal log with tester, can check that the abnormal log being stored in mobile terminal is checked in request by sending out.
The abnormal log processing procedure of the abnormal log processing unit 40 of this preferred embodiment is completed in this way.
The abnormal log processing unit of this preferred embodiment is dynamic to what is applied extremely on the basis of first preferred embodiment
State information carries out readjustment and is configured to the automatic reading display of abnormal log, further improves using abnormal processing
Efficiency.
Illustrate the abnormal log processing method and abnormal log processing unit of the present invention below by a specific embodiment
Specific process flow, please refers to Fig. 5, and Fig. 5 is the sequence diagram of the specific embodiment of the abnormal log processing method of the present invention.
One, some of user on mobile terminals is applied and is operated, and application exception such as occurs, then mobile terminal is sent out
Using abnormal signal.At this moment abnormal log processing unit adjusts back the multidate information of application, and records when applying abnormal
System information, application message and the call stack information of mobile terminal.Then according to the system information of above-mentioned mobile terminal, application
Information and call stack information generate abnormal log and are stored in the memory module of mobile terminal.
Two, user be again started up in application, abnormal log processing unit read from the memory module of mobile terminal it is all
Abnormal log, and all abnormal logs are returned into user in the form of a list.
Three, user selects specific abnormal log from list, and using corresponding selection instruction is sent out, abnormal log is handled
Device instructs the details for reading the abnormal log according to the selection.
Four, the details of abnormal log are returned to user by the memory module of last mobile terminal, and user can be according to this
Details using abnormal to parsing, to be improved to abnormal application.
The abnormal log processing method and abnormal log processing unit of the present invention generates abnormal day according to application abnormal signal
Will, and directly the abnormal log is stored in mobile terminal, easily abnormal log can be checked using tester,
It improves using abnormal treatment effeciency;Solves the processing of existing abnormal log processing method and abnormal log processing unit
Inefficiency and compatible poor technical problem.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, can also be each unit list
Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both may be used
The form of hardware is realized, can also be realized in the form of software function module.If the integrated module is with software function
The form of module is realized and when sold or used as an independent product, can also be stored in a computer-readable storage and be situated between
In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with
Execute the method in correlation method embodiment.
In conclusion although the present invention is disclosed above with preferred embodiment, above preferred embodiment is not to limit
The system present invention, those skilled in the art can make various changes and profit without departing from the spirit and scope of the present invention
Decorations, therefore protection scope of the present invention is subject to the range that claim defines.
Claims (8)
1. a kind of abnormal log processing method, which is characterized in that including:
Abnormal signal is applied in detection, and applies abnormal signal according to described, the system letter of mobile terminal when record application is abnormal
Breath, application message and call stack information;
According to the system information of the mobile terminal, application message and call stack information, generates and apply abnormal signal with described
Relevant abnormal log, and the abnormal log is stored in the mobile terminal;And
When the application starts, reads and show the abnormal log;
The step of system information of mobile terminal when the record application is abnormal, application message and call stack information includes:
The multidate information of the application is adjusted back;And
During the readjustment, record the application it is abnormal when the system information of the mobile terminal, application message with
And call stack information.
2. abnormal log processing method according to claim 1, which is characterized in that it is described when the application starts, it reads
It takes and includes the step of showing the abnormal log:
It is whether abnormal by once being run before the abnormal log detection application when application starts;
Such as an operation exception before the application, then reads and show the abnormal log;And
Such as a normal operation before the application, then normally start the application.
3. abnormal log processing method according to claim 2, which is characterized in that the reading simultaneously shows the abnormal day
The step of will includes:
All abnormal logs in the mobile terminal are read, to show the list of the abnormal log;And
Selection instruction is received, and the details of the corresponding abnormal log are read and shown according to the selection instruction,
Described in the details of abnormal log include the system information of the mobile terminal corresponding with the abnormal log, using letter
Breath and call stack information.
4. abnormal log processing method according to claim 1, which is characterized in that the step of readjustment includes:By institute
State application multidate information restore to it is described generated using abnormal signal before nearest record point.
5. a kind of abnormal log processing unit, which is characterized in that including:
Logging modle applies abnormal signal for detecting, and applies abnormal signal, movement when record application is abnormal according to described
System information, application message and the call stack information of terminal;
Memory module, for according to the system information of the mobile terminal, application message and call stack information, generate with it is described
It is stored in the mobile terminal using the relevant abnormal log of abnormal signal, and by the abnormal log;And
Display module, for when the application starts, reading and showing the abnormal log;
The logging modle includes:
Unit is adjusted back, is adjusted back for the multidate information to the application;And
The system of recording unit, mobile terminal when for during the readjustment, recording the application exception is believed
Breath, application message and call stack information.
6. abnormal log processing unit according to claim 5, which is characterized in that the display module includes:
Abnormality detecting unit, when starting for the application, by the way that once operation is before the abnormal log detection application
No exception;
Display unit, for reading and showing the abnormal log;And
Start unit, for normally starting the application.
7. abnormal log processing unit according to claim 6, which is characterized in that the display unit includes:
List display subelement, for reading all abnormal logs in the mobile terminal, to show the exception
The list of daily record;And
Details show subelement, for receiving selection instruction, and are read according to the selection instruction and show corresponding institute
The details of abnormal log are stated, wherein the details of the abnormal log include the shifting corresponding with the abnormal log
System information, application message and the call stack information of dynamic terminal.
8. abnormal log processing unit according to claim 5, which is characterized in that the step of readjustment includes:By institute
State application multidate information restore to it is described generated using abnormal signal before nearest record point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410307211.XA CN105204969B (en) | 2014-06-30 | 2014-06-30 | Abnormal log processing method and abnormal log processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410307211.XA CN105204969B (en) | 2014-06-30 | 2014-06-30 | Abnormal log processing method and abnormal log processing unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105204969A CN105204969A (en) | 2015-12-30 |
CN105204969B true CN105204969B (en) | 2018-10-30 |
Family
ID=54952663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410307211.XA Active CN105204969B (en) | 2014-06-30 | 2014-06-30 | Abnormal log processing method and abnormal log processing unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105204969B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808411A (en) * | 2016-03-08 | 2016-07-27 | 李小荣 | Method and device for alarming system fault through social application |
CN105955862A (en) * | 2016-04-15 | 2016-09-21 | 乐视控股(北京)有限公司 | Abnormal problem monitoring positioning method and device |
CN105787288A (en) * | 2016-05-11 | 2016-07-20 | 鼎泰生物科技(海南)有限公司 | Method and device for executing failure warning on glucometer by virtue of social application |
CN106055465A (en) * | 2016-05-31 | 2016-10-26 | 广东能龙教育股份有限公司 | Client error abnormal information statistical method |
CN107453889B (en) * | 2016-05-31 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of method for uploading and device of journal file |
CN108228446A (en) * | 2016-12-14 | 2018-06-29 | 北京国双科技有限公司 | A kind of software anomaly processing method and software detection device |
CN106598811B (en) * | 2016-12-19 | 2019-06-25 | 四川苏格通讯技术有限公司 | Anomalous event processing method, device and terminal |
CN107402835B (en) * | 2017-07-25 | 2021-04-06 | Oppo广东移动通信有限公司 | Application program exception handling method and device, storage medium and mobile terminal |
CN107678928B (en) * | 2017-10-31 | 2021-06-01 | 聚好看科技股份有限公司 | Application program processing method and server |
CN108090173A (en) * | 2017-12-14 | 2018-05-29 | 广东欧珀移动通信有限公司 | Delet method, device, terminal and the storage medium of record screen file |
CN108009269B (en) * | 2017-12-15 | 2022-01-25 | 北京小米移动软件有限公司 | Method and device for displaying page data |
CN109376056A (en) * | 2018-10-17 | 2019-02-22 | Oppo广东移动通信有限公司 | Abnormal log analysis method, device, storage medium, mobile terminal and server |
CN109598427B (en) * | 2018-11-23 | 2022-03-01 | 泰康保险集团股份有限公司 | Robot management method and device and electronic equipment |
CN109614290A (en) * | 2018-12-10 | 2019-04-12 | 苏州思必驰信息科技有限公司 | Process exception information recording method and system in container |
CN113010482B (en) * | 2019-12-20 | 2023-09-22 | 腾讯科技(深圳)有限公司 | Log processing method and device, mobile terminal and storage medium |
CN114077525A (en) * | 2020-08-17 | 2022-02-22 | 鸿富锦精密电子(天津)有限公司 | Abnormal log processing method and device, terminal equipment, cloud server and system |
CN113867999B (en) * | 2021-08-30 | 2022-09-30 | 荣耀终端有限公司 | Application exception handling method, terminal and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
CN103678109A (en) * | 2012-09-25 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Dump document analysis method, device and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7506203B2 (en) * | 2005-11-10 | 2009-03-17 | International Business Machines Corporation | Extracting log and trace buffers in the event of system crashes |
CN103377095B (en) * | 2012-04-24 | 2016-12-07 | 华为技术有限公司 | The store method of a kind of running log and equipment |
-
2014
- 2014-06-30 CN CN201410307211.XA patent/CN105204969B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103678109A (en) * | 2012-09-25 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Dump document analysis method, device and system |
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
Also Published As
Publication number | Publication date |
---|---|
CN105204969A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105204969B (en) | Abnormal log processing method and abnormal log processing unit | |
US9317413B2 (en) | Testing device and testing method thereof | |
US9612823B2 (en) | User-specific roaming settings | |
US10191838B2 (en) | Method and device for checking influence of deleting cache file, and mobile terminal | |
CN110908837B (en) | Application program exception handling method and device, electronic equipment and storage medium | |
WO2020224238A1 (en) | Blockchain node depolyment method, device and equipment, and storage medium | |
US20140189697A1 (en) | Method and apparatus for managing application program | |
CN107741902A (en) | Program application detection method and program application detection means | |
CN106126424A (en) | A kind of visual automated testing method of script, device and mobile terminal | |
CN108874441B (en) | Board card configuration method, device, server and storage medium | |
CN104063284B (en) | The method and apparatus running application program | |
US10193989B2 (en) | Visualization of user behavior | |
CN105677533B (en) | Application process monitoring method and application process monitoring device | |
US9118756B2 (en) | Recording method, recording device, and electronic device | |
CN105653339B (en) | Application process starts method and application process starter | |
CN104572638A (en) | Data reading and writing method and device | |
CN103389927A (en) | Data recovery method, device and system | |
KR20150139546A (en) | Removable storage device identity and configuration information | |
CN103383658B (en) | Remember the method and server of mobile terminal operation | |
CN110413800B (en) | Method and equipment for providing novel information | |
CN106371992B (en) | Browser error detection method and error detector element | |
CN105700916B (en) | Application process starts method and application process starter | |
US20240104085A1 (en) | Computer system and method for evaluating integrity and parsing of a file system and parsing implementation | |
TWI547859B (en) | Method of removing external devices related computer system and non-transitory computer-readable medium | |
CN104850551A (en) | Data processing method, data processing apparatus and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |