CN104572413A - Method for storing system logs by electronic equipment and electronic equipment - Google Patents
Method for storing system logs by electronic equipment and electronic equipment Download PDFInfo
- Publication number
- CN104572413A CN104572413A CN201310524581.4A CN201310524581A CN104572413A CN 104572413 A CN104572413 A CN 104572413A CN 201310524581 A CN201310524581 A CN 201310524581A CN 104572413 A CN104572413 A CN 104572413A
- Authority
- CN
- China
- Prior art keywords
- memory module
- value
- module
- storing value
- electronic equipment
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method for storing system logs by electronic equipment and the electronic equipment, wherein the method for storing the system logs by the electronic equipment comprises the following steps that system log storage is started; the rest storage value of a storage module is detected; whether the rest storage value is greater than the preset storage threshold value or not is judged; when the rest storage value is greater than the storage threshold value, a system is requested to send the current generated system log to the storage module, the system log fed back by the system is stored to the storage module, the operation returns, and the step of detecting the rest storage value of the storage module is executed; when the rest storage value of the storage module is smaller than the storage threshold value, the system log earliest stored in the storage module is deleted, the operation returns, and the step of detecting the rest storage value of the storage module is executed. Through the steps, the problem that the storage module of the electronic equipment cannot automatically update the stored system log is solved, the effect that the system problems generated in the use process of being close to users can be found in the angle of the users is achieved, and the test and the development of the electronic equipment are convenient.
Description
Technical field
The present invention relates to communication technical field, particularly relate to method and the electronic equipment of the daily record of a kind of electronic equipment saved system.
Background technology
System journal is the important component part of electronic equipment development& testing process, is the important evidence of analysis and solve electronic apparatus system Bug, is the important supplementary means improving and optimize electronic equipment performance.Computer can be connected by USB data line in electronic equipment research and development debugging carry out output system daily record with elementary step those skilled in the art of test, connect the daily record of computer output system by USB line again when entering the system test stage and just to seem operation and use inconvenient.And system test needs the actual use scenes of being close to the users as far as possible, connecting computer only by USB data line, is that the angle that cannot stand in user finds the system problem occurred when using of being close to the users.
If the angle that need stand in user finds the system problem occurred when using of being close to the users, then can go saved system daily record by the storage space of self or expansion in electronic equipment, when there is bug during user uses, then can recall system journal in storage space, operation facility very.
But the storage space memory space in electronic equipment is limited compared to computer, memory module due to electronic equipment cannot automatically upgrade saved system daily record, when perhaps there is bug when user uses, perhaps the storage space in electronic equipment is full already, be not saved in the system journal that there is bug, so the new system journal of system journal guarantee in the deletion storage space needing user regular is continually saved.
How to make the memory module of electronic equipment automatically upgrade saved system daily record, the angle realizing standing in user finds the system problem occurred when using of being close to the users, and is convenient to test and the exploitation of electronic equipment, has become the problem waiting at present to solve.
Summary of the invention
The problem that the present invention solves how to make the memory module of electronic equipment automatically upgrade saved system daily record, the angle realizing standing in user finds the system problem occurred when using of being close to the users, be convenient to test and the exploitation of electronic equipment, ensure that new system journal is continually saved.
For solving the problem, the method for a kind of electronic equipment saved system daily record, the system journal for the system of electronic equipment being produced is saved in the memory module of described electronic equipment, and described method step is as follows:
Open system daily record is preserved;
Detect the residue storing value of described memory module;
Judge whether described residue storing value is greater than a default storage threshold value;
When described residue storing value is greater than described storage threshold value, described system is asked to send the system journal of current generation to described memory module; The described system journal of described system feedback is saved to described memory module; Return and perform the residue storing value step detecting described memory module;
When described residue storing value is less than or equal to described storage threshold value, delete in described memory module the described system journal of preserving at first; Return and perform the residue storing value step detecting described memory module.
Further, the described described system journal by described system feedback is saved to described memory module step and comprises:
Judge whether to exceed the default continuation requests time;
When not exceeding the described continuation requests time, system described in continuation requests sends the described system journal of current generation to described memory module;
When exceeding the described continuation requests time, returning and performing the step of the residue storing value detecting described memory module.
Further, described method also comprises:
Described system journal is saved in the syslog file folder preset in described memory module.
The invention provides the another kind of method of the method for a kind of electronic equipment saved system daily record, the system journal for the system of electronic equipment being produced is saved in the memory module of described electronic equipment, and described method step is as follows:
Open system daily record is preserved;
Detect the residue storing value of described memory module;
Detect a syslog file folder storing value, wherein, described syslog file folder is the glue file folder that described system journal is saved in described memory module;
Judge whether the residue storing value of described memory module is greater than a default storage threshold value;
When the residue storing value of described memory module is greater than described default storage threshold value, judge whether the described storing value that described syslog file presss from both sides is less than a default maximum storage value; If the described storing value of described syslog file folder is less than described maximum storage value, described system is asked to send the described system journal of current generation to described syslog file folder; The described system journal of described system feedback is saved to described syslog file folder; Return and perform the residue storing value step detecting described memory module;
When the residue storing value of described memory module is less than or equal to described default storage threshold value, judge whether the described storing value that described syslog file presss from both sides is greater than a default maximum storage value; If the described storing value of described syslog file folder is greater than described maximum storage value, delete the system journal of preserving at first in described syslog file folder; Return and perform the residue storing value step detecting described memory module;
Further, the described described system journal by described system feedback be saved to described syslog file folder step comprise:
Judge whether to exceed the default continuation requests time;
When not exceeding the described continuation requests time, system described in continuation requests sends the described system journal of current generation to described syslog file folder;
When exceeding the described continuation requests time, returning and performing the step of the residue storing value detecting described memory module.
Further, described method also comprises:
If the residue storing value of described memory module is greater than described default storage threshold value, and when the described storing value of described syslog file folder is more than or equal to described maximum storage value, delete the described system journal of preserving at first in described syslog file folder.
Present invention also offers a kind of electronic equipment, described electronic equipment comprises a system, a memory module, and described electronic equipment also comprises:
One starts module, holds instruction for sending open system daily record;
One detection module, for when receiving after described system journal that described startup module sends holds instruction, detects the residue storing value of described memory module;
One judge module, for judging whether the residue storing value of described memory module is greater than a default storage threshold value;
One request module, for when the residue storing value of described memory module is greater than described storage threshold value, asks described system to send the system journal of current generation to described memory module;
One preserves module, for the described system journal of described system feedback is saved to described memory module, after completing preservation operation, sends detection instruction and continues to detect the residue storing value of described memory module to trigger described detection module to detection module;
One removing module, for when the residue storing value of described memory module is less than or equal to described storage threshold value, delete in described memory module the described system journal of preserving at first, after completing deletion action, send detection instruction and detect to trigger the residue storing value of described detection module to described memory module to detection module.
Further, described preservation module also comprises:
One time control module, the default continuation requests time is exceeded for judging whether, when within the described continuation requests time, send continuation requests instruction to described request module, system described in continuation requests sends the described system journal of current generation to described memory module, when exceeding the described continuation requests time, sending detection instruction and detecting to trigger the residue storing value of described detection module to described memory module to detection module.
Further, a syslog file folder is comprised in described memory module, for preserving described system journal.
Further, described detection module also comprises a file detection module, for detecting the storing value of described syslog file folder;
Described judge module also comprises one first judge module, for when the residue storing value of described memory module is greater than described default storage threshold value, judges whether the storing value that described syslog file presss from both sides is less than a default maximum storage value;
If the storing value of described syslog file folder is less than a default maximum storage value, described first judge module sends continuation requests instruction to described request module, asks described system to send the described system journal of current generation to described syslog file folder;
If the storing value of described syslog file folder is more than or equal to described maximum storage value, described first judge module triggers described removing module and delete the described system journal of preserving at first in described syslog file folder.
Further, described judge module also comprises:
One second judge module, when the residue storing value of described memory module is less than or equal to described default storage threshold value, judges whether the storing value that described syslog file presss from both sides is greater than a default maximum storage value;
If the storing value of described syslog file folder is greater than described maximum storage value, delete the described system journal of preserving at first in described syslog file folder.
As mentioned above, the method of described electronic equipment saved system daily record and electronic equipment, there is following beneficial effect: by when detect the residue storing value of electronic equipment memory module be less than one preset storage threshold value time, the system journal that automatic deletion is preserved at first, be beneficial to new system journal and be saved to memory module in electronic equipment, make the memory module of electronic equipment automatically upgrade saved system daily record.
By setting up in a storage module with the file of fixing storage system daily record, making that user is easier in storage space finds system journal, adding the convenience of user.
Detected the time of memory module residue storing value by setting, avoid the normal operation of the operating influence electronic equipment due to saved system daily record.
Because the storage space in electronic equipment is relatively limited, being reached the standard grade by the storage setting fixing storage system log folder is maximum storage value, and pass through the storage size of detection system log folder, when the size of syslog file folder exceedes the maximum storage value of setting, the system journal that automatic deletion is preserved at first, the storage space solved in electronic equipment cannot store the problem of alternative document or application because system journal is too many.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method first embodiment of a kind of electronic equipment saved system of the present invention daily record;
Fig. 2 is the schematic flow sheet of method second embodiment of a kind of electronic equipment saved system of the present invention daily record;
Fig. 3 is the structural representation of electronic equipment first embodiment of a kind of electronic equipment saved system of the present invention daily record;
Fig. 4 is the structural representation of electronic equipment second embodiment of a kind of electronic equipment saved system of the present invention daily record;
1 system
2 memory modules
3 start module
4 detection modules
5 judge modules
51 first judge modules
52 second judge modules
6 request module
7 preserve module
8 removing modules
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with the accompanying drawing of embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.
The invention provides the method for a kind of electronic equipment saved system daily record, system journal for the system of electronic equipment being produced is saved in the memory module of described electronic equipment, Fig. 1 is the schematic flow sheet of method first embodiment of a kind of electronic equipment saved system of the present invention daily record, composition graphs 1, described method step is as follows:
Step S1: open system daily record is preserved.
The method that open system daily record is preserved can be realize by being provided with corresponding button on an electronic device, open system daily record can also be realized by input one group of specific private mark to preserve, the private mark that such as open system daily record is preserved is: during * * * ###, so when user inputs * * * ###, then enter system journal save routine.
It should be noted that electronic equipment disclosed in the present invention can be the electronic equipment such as mobile phone or palm PC, system journal described in the present invention can also be able to be baseband system daily record for operating system daily record, it can also be the subsystem daily record in operating system daily record, or the subsystem daily record in baseband system daily record, before open system daily record is preserved, user can set required system journal kind of preserving, and the system journal that preservation is specified is in memory module.
Step S2: the residue storing value detecting memory module.
It should be noted that, the memory module in electronic equipment is not limited only to the internal memory in electronic equipment, can also be the extension storage such as the SD card in electronic equipment.
Before open system daily record is preserved, user can specify and system journal is stored in which memory device.
Step S3: judge whether remain storing value is greater than a default storage threshold value.
Storage space in electronic equipment is relatively limited, so easily produce the problem that cannot continue to store.The present invention sets the minimum memory value of a residue storing value, namely stores threshold value, and stores threshold value as the benchmark judged according to this.
When described residue storing value is greater than described storage threshold value, perform step S41: Request System sends current produced system journal to memory module.
Step S5: the system journal of described system feedback is saved to memory module.
Then return and perform step S2.
When electronic equipment storage space is larger, when namely residue storing value is greater than described storage threshold value, the system journal of the saved system feedback that memory module continues.
When the residue storing value of described memory module is less than or equal to described storage threshold value, perform step S42: delete the system journal of preserving at first in a storage module.
Then, return and perform step S2.
Because the storage space of self in electronic equipment is not very large, when bug appears in system time, the storage space perhaps in electronic equipment is full already, the system journal that there is bug is not preserved.Deleted the system journal of preserving at first in memory module by step S42, ensure that the system journal in memory module is up-to-date system journal.
It needs to be noted that all to return step S2 after step S5 and step S42 ends process continues to circulate and perform subsequent step, saved system daily record that like this can be real-time.
Fig. 2 is the schematic flow sheet of method second embodiment of electronic equipment saved system of the present invention daily record, the difference of the second embodiment and the first embodiment is, set up the file of the saved system file that specifies in a storage module, and the upper limit of this file given storing value, so just can not because of system journal preserve too much, when user needs to preserve alternative document or application, there is situation about cannot preserve because not having storage space.Composition graphs 2, the step of the second embodiment of described method is as follows:
Step S1: open system daily record is preserved.
Step S2: the residue storing value detecting memory module.
Step S21: the storing value of detection system log folder.
Set up syslog file folder in a storage module, for storage system daily record, make that user is easier in storage space finds system journal, add the convenience of user.
Step S3: judge whether the residue storing value of memory module is greater than a default storage threshold value.
When the residue storing value of described memory module is less than or equal to a default storage threshold value, perform step S32: judge whether the storing value that syslog file presss from both sides is greater than a default maximum storage value.
When the storing value of syslog file folder is greater than a default maximum storage value, perform step S42 ': delete the system journal of preserving at first in syslog file folder.
Return step S2.
The residue storing value of memory module is less than or equal to a default situation storing threshold value two kinds, a kind of situation be the alternative document in memory module excessive and result in memory module residue storing value be less than or equal to storage threshold value, the system journal of preserving at first so in deletion system log folder, system journal storage space during syslog file can only be caused to press from both sides diminishes, easily causing cannot saved system daily record, therefore in the present invention, when system folder storing value is less than or equal to maximum storage value, can not the system journal of preserving at first in deletion system log folder, with the storage of protection system daily record.Under these circumstances, the mode of alternative document can be deleted by reminding, impelling user to delete alternative document in storage space voluntarily, to ensure the preservation of system journal.
Another kind is because the storing value of syslog file folder is excessive, and causes the residue storing value of memory module to be less than or equal to storage threshold value.Then only need the system journal that deletion is preserved at first at this moment, and continuation execution step S2 judges, just can until residue storing value is greater than storage threshold value.In method provided by the invention, step S32 ~ S42 ' effectively solves the problems referred to above.
Continue with reference to figure 2, when the residue storing value of described memory module is greater than a default storage threshold value, perform step S31: judge whether the storing value that syslog file presss from both sides is less than a default maximum storage value.
When being more than or equal to a default maximum storage value when judging the storing value that syslog file presss from both sides, perform step S42 '.Even if when remain in memory module storing value be greater than default storage threshold value time, the storing value of system folder is also likely be more than or equal to default maximum storage value, in order to not affect the storage of memory module for alternative document etc., set this scheme, effectively reduce syslog file and be clipped in the space taken in storage space.
When being less than a default maximum storage value when judging the storing value that syslog file presss from both sides, perform step S41 ': the system journal that Request System sends current generation is pressed from both sides to syslog file.
Step S5: the described system journal of described system feedback is saved to syslog file folder.
Step S51: judge whether to exceed between a default continuation requests.
If exceed the continuation requests time return and perform step S2.
If do not exceed the continuation requests time, return and perform step S41 ', continuing current the produced system journal of Request System transmission and press from both sides to syslog file.
Complete after system journal is saved to syslog file folder at every turn and perform detection memory module being remained to storing value, relatively comparatively can affect the travelling speed of electronic equipment.The present invention utilizes timing to detect the method for memory module residue storing value, decreases the impact detecting contrast step and run electronic equipment.
Present invention also offers the electronic equipment of a kind of electronic equipment saved system daily record, Fig. 3 is the structural representation of electronic equipment first embodiment of a kind of electronic equipment saved system of the present invention daily record, composition graphs 3, described electronic equipment comprises: system 1, memory module 2, starting target in module 3(Fig. 3 is switch module), detection module 4, judge module 5, request module 6, preserve module 7, removing module 8.
Wherein, starting module 3, holding instruction for sending open system daily record.
Detection module 4, is electrically connected and starts module 3 and memory module 2, for when receiving after described system journal that described startup module 3 sends holds instruction, detects the residue storing value of described memory module 2;
Judge module 5, is electrically connected detection module 4, for judging whether the residue storing value of described memory module 2 is greater than a default storage threshold value;
Request module 6, is electrically connected judge module 5 and system 1, for when the residue storing value of described memory module 2 is greater than described storage threshold value, asks described system 1 to send the system journal of current generation to described memory module 2;
Preserve module 7, electric connection system 1, request module 6, memory module 2 and detection module 4, described system journal for described system 1 being fed back is saved to described memory module 2, after completing preservation operation, send and detect instruction to detection module 4, continue the step performing the residue storing value detecting described memory module 2;
Removing module 8, be electrically connected judge module 5, memory module 2 and detection module 4, for when the residue storing value of described memory module 2 is less than or equal to described storage threshold value, delete the described system journal of preserving at first in described memory module 2, after completing deletion action, send and detect instruction to detection module 4, continue the step performing the residue storing value detecting described memory module.
Fig. 4 is the structural representation of the second embodiment of the electronic equipment of a kind of electronic equipment saved system of the present invention daily record, composition graphs 4, and the second embodiment of the electronic equipment of described electronic equipment saved system daily record and the difference of the first embodiment are:
Include syslog file folder (not shown in FIG.) in memory module 2, described syslog file folder is for preserving described system journal.
Described preservation module 7 also comprises: time control module (not shown in FIG.), exceeds the default continuation requests time for judging whether;
When within the described continuation requests time, send continuation requests instruction to described request module 6, system 1 described in continuation requests sends the described system journal of current generation in the syslog file folder of described memory module 2;
When exceeding the described continuation requests time, sending and detecting instruction to detection module 4, again carrying out the detection of the residue storing value of described memory module 2.
Further, described detection module 4 also comprises a file detection module (not shown in FIG.), for detecting the storing value of described syslog file folder;
Described judge module 5 also comprises one first judge module 51, for when the residue storing value of described memory module 2 is more than or equal to described default storage threshold value, judges whether the storing value that described syslog file presss from both sides is less than a default maximum storage value;
If the storing value of described syslog file folder is less than a default maximum storage value, send continuation requests instruction to described request module 6, ask described system 1 to send the described system journal of current generation to described syslog file folder;
If the storing value of described syslog file folder is more than or equal to described maximum storage value, in described syslog file folder, delete the described system journal of preserving at first.
Further, described judge module 5 also comprises:
One second judge module 52, when the residue storing value of described memory module 2 is less than or equal to described default storage threshold value, if the storing value of described syslog file folder is greater than described maximum storage value, delete the described system journal of preserving at first in described syslog file folder.
The invention provides method and the electronic equipment of the daily record of a kind of electronic equipment saved system, by detect the residue storing value of electronic equipment memory module whether be less than one preset storage threshold value time, the method of the system journal of preserving at first in automatic deletion memory module, the memory module solving electronic equipment cannot upgrade the problem of saved system daily record automatically, when the angle realizing standing in user finds to be close to the users use, system produced problem, is convenient to test and the exploitation of electronic equipment.
By setting up in a storage module with the file of fixing storage system daily record, making that user is easier in storage space finds system journal, adding the convenience of user.
Detected the time of memory module residue storing value by setting, avoid the normal operation of the operating influence electronic equipment due to saved system daily record.
Reached the standard grade by the storage setting fixing storage system log folder, and by detecting its storage size, when the size of secondary file exceedes the maximum storage value of setting, the system journal of preserving at first in automatic deleting system log folder, the storage space solved in electronic equipment cannot store the problem of alternative document or application because system journal is too many.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.
Claims (11)
1. a method for electronic equipment saved system daily record, the system journal for the system of electronic equipment being produced is saved in the memory module of described electronic equipment, it is characterized in that, described method step is as follows:
Open system daily record is preserved;
Detect the residue storing value of described memory module;
Judge whether described residue storing value is greater than a default storage threshold value;
When described residue storing value is greater than described storage threshold value, described system is asked to send the system journal of current generation to described memory module; The described system journal of described system feedback is saved to described memory module; Return and perform the residue storing value step detecting described memory module;
When described residue storing value is less than or equal to described storage threshold value, delete in described memory module the described system journal of preserving at first; Return and perform the residue storing value step detecting described memory module.
2. method according to claim 1, is characterized in that, the described described system journal by described system feedback is saved to described memory module step and comprises:
Judge whether to exceed the default continuation requests time;
When not exceeding the described continuation requests time, system described in continuation requests sends the described system journal of current generation to described memory module;
When exceeding the described continuation requests time, returning and performing the step of the residue storing value detecting described memory module.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
Described system journal is saved in the syslog file folder preset in described memory module.
4. a method for electronic equipment saved system daily record, the system journal for the system of electronic equipment being produced is saved in the memory module of described electronic equipment, it is characterized in that, described method step is as follows:
Open system daily record is preserved;
Detect the residue storing value of described memory module;
Detect a syslog file folder storing value, wherein, described syslog file folder is for preserving described system journal;
Judge whether the residue storing value of described memory module is greater than a default storage threshold value;
When the residue storing value of described memory module is greater than described default storage threshold value, judge whether the described storing value that described syslog file presss from both sides is less than a default maximum storage value; If the described storing value of described syslog file folder is less than described maximum storage value, described system is asked to send the described system journal of current generation to described syslog file folder; The described system journal of described system feedback is saved to described syslog file folder; Return and perform the residue storing value step detecting described memory module;
When the residue storing value of described memory module is less than or equal to described default storage threshold value, judge whether the described storing value that described syslog file presss from both sides is greater than a default maximum storage value; If the described storing value of described syslog file folder is greater than described maximum storage value, delete the system journal of preserving at first in described syslog file folder; Return and perform the residue storing value step detecting described memory module.
5. method according to claim 4, is characterized in that, the step that the described described system journal by described system feedback is saved to described syslog file folder comprises:
Judge whether to exceed the default continuation requests time;
When not exceeding the described continuation requests time, system described in continuation requests sends the described system journal of current generation to described syslog file folder;
When exceeding the described continuation requests time, returning and performing the step of the residue storing value detecting described memory module.
6. the method according to claim 4 or 5, is characterized in that, described method also comprises:
If the residue storing value of described memory module is greater than described default storage threshold value, and when the described storing value of described syslog file folder is more than or equal to described maximum storage value, delete the described system journal of preserving at first in described syslog file folder.
7. an electronic equipment, described electronic equipment comprises a system, a memory module, it is characterized in that, described electronic equipment also comprises:
One starts module, holds instruction for sending open system daily record;
One detection module, for when receiving after described system journal that described startup module sends holds instruction, detects the residue storing value of described memory module;
One judge module, for judging whether the residue storing value of described memory module is greater than a default storage threshold value;
One request module, for when the residue storing value of described memory module is greater than described storage threshold value, asks described system to send the system journal of current generation to described memory module;
One preserves module, for the described system journal of described system feedback is saved to described memory module, after completing preservation operation, sends detection instruction and continues to detect the residue storing value of described memory module to trigger described detection module to detection module;
One removing module, for when the residue storing value of described memory module is less than or equal to described storage threshold value, delete in described memory module the described system journal of preserving at first, after completing deletion action, send detection instruction and detect to trigger the residue storing value of described detection module to described memory module to detection module.
8. electronic equipment according to claim 7, it is characterized in that, described preservation module also comprises:
One time control module, the default continuation requests time is exceeded for judging whether, when within the described continuation requests time, send continuation requests instruction to described request module, system described in continuation requests sends the described system journal of current generation to described memory module, when exceeding the described continuation requests time, sending detection instruction and detecting to trigger the residue storing value of described detection module to described memory module to detection module.
9. the electronic equipment according to claim 7 or 8, is characterized in that, comprises a syslog file folder, for preserving described system journal in described memory module.
10. electronic equipment according to claim 9, is characterized in that,
Described detection module also comprises a file detection module, for detecting the storing value of described syslog file folder;
Described judge module also comprises one first judge module, for when the residue storing value of described memory module is greater than described default storage threshold value, judges whether the storing value that described syslog file presss from both sides is less than a default maximum storage value;
If the storing value of described syslog file folder is less than a default maximum storage value, described first judge module sends continuation requests instruction to described request module, asks described system to send the described system journal of current generation to described syslog file folder;
If the storing value of described syslog file folder is more than or equal to described maximum storage value, described first judge module triggers described removing module and delete the described system journal of preserving at first in described syslog file folder.
11. electronic equipments according to claim 10, is characterized in that, described judge module also comprises:
One second judge module, when the residue storing value of described memory module is less than or equal to described default storage threshold value, judges whether the storing value that described syslog file presss from both sides is greater than a default maximum storage value;
If the storing value of described syslog file folder is greater than described maximum storage value, delete the described system journal of preserving at first in described syslog file folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310524581.4A CN104572413B (en) | 2013-10-29 | 2013-10-29 | A kind of electronic equipment preserves the method and electronic equipment of system journal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310524581.4A CN104572413B (en) | 2013-10-29 | 2013-10-29 | A kind of electronic equipment preserves the method and electronic equipment of system journal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572413A true CN104572413A (en) | 2015-04-29 |
CN104572413B CN104572413B (en) | 2017-11-24 |
Family
ID=53088547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310524581.4A Active CN104572413B (en) | 2013-10-29 | 2013-10-29 | A kind of electronic equipment preserves the method and electronic equipment of system journal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572413B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402835A (en) * | 2017-07-25 | 2017-11-28 | 广东欧珀移动通信有限公司 | Abnormality eliminating method, device and the storage medium and mobile terminal of application program |
WO2018006721A1 (en) * | 2016-07-08 | 2018-01-11 | 中兴通讯股份有限公司 | Method and apparatus for storing log file |
CN110609818A (en) * | 2018-05-29 | 2019-12-24 | 视联动力信息技术股份有限公司 | Log processing method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040250172A1 (en) * | 2002-10-22 | 2004-12-09 | Microsoft Corporation | Transaction-safe FAT file system improvements |
CN1614688A (en) * | 2004-07-05 | 2005-05-11 | 上海交通大学 | Monitoring data file processing method and hard disk inspecting method based on hard disk |
CN1980357A (en) * | 2005-12-08 | 2007-06-13 | 南京Lg新港显示有限公司 | Control method of data storage apparatus |
CN101334781A (en) * | 2007-06-28 | 2008-12-31 | 鸿富锦精密工业(深圳)有限公司 | Capacity integration equipment and its data storage method and data reading method |
CN101908021A (en) * | 2009-06-03 | 2010-12-08 | 康佳集团股份有限公司 | Flash memory erasing-writing method and flash memory |
CN102567184A (en) * | 2011-12-27 | 2012-07-11 | 青岛海信宽带多媒体技术有限公司 | Journal storage method based on Flash |
CN102981944A (en) * | 2012-12-12 | 2013-03-20 | 青岛海信宽带多媒体技术有限公司 | Log storage method based on file system |
CN103167134A (en) * | 2012-08-23 | 2013-06-19 | 深圳市金立通信设备有限公司 | Infinite storage system and method of mobile phone |
CN103365977A (en) * | 2013-06-28 | 2013-10-23 | 北京奇艺世纪科技有限公司 | Storage processing method and device for data on nonvolatile storage medium |
-
2013
- 2013-10-29 CN CN201310524581.4A patent/CN104572413B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040250172A1 (en) * | 2002-10-22 | 2004-12-09 | Microsoft Corporation | Transaction-safe FAT file system improvements |
CN1614688A (en) * | 2004-07-05 | 2005-05-11 | 上海交通大学 | Monitoring data file processing method and hard disk inspecting method based on hard disk |
CN1980357A (en) * | 2005-12-08 | 2007-06-13 | 南京Lg新港显示有限公司 | Control method of data storage apparatus |
CN101334781A (en) * | 2007-06-28 | 2008-12-31 | 鸿富锦精密工业(深圳)有限公司 | Capacity integration equipment and its data storage method and data reading method |
CN101908021A (en) * | 2009-06-03 | 2010-12-08 | 康佳集团股份有限公司 | Flash memory erasing-writing method and flash memory |
CN102567184A (en) * | 2011-12-27 | 2012-07-11 | 青岛海信宽带多媒体技术有限公司 | Journal storage method based on Flash |
CN103167134A (en) * | 2012-08-23 | 2013-06-19 | 深圳市金立通信设备有限公司 | Infinite storage system and method of mobile phone |
CN102981944A (en) * | 2012-12-12 | 2013-03-20 | 青岛海信宽带多媒体技术有限公司 | Log storage method based on file system |
CN103365977A (en) * | 2013-06-28 | 2013-10-23 | 北京奇艺世纪科技有限公司 | Storage processing method and device for data on nonvolatile storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018006721A1 (en) * | 2016-07-08 | 2018-01-11 | 中兴通讯股份有限公司 | Method and apparatus for storing log file |
CN107590162A (en) * | 2016-07-08 | 2018-01-16 | 中兴通讯股份有限公司 | The storage method and device of journal file |
CN107402835A (en) * | 2017-07-25 | 2017-11-28 | 广东欧珀移动通信有限公司 | Abnormality eliminating method, device and the storage medium and mobile terminal of application program |
CN110609818A (en) * | 2018-05-29 | 2019-12-24 | 视联动力信息技术股份有限公司 | Log processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104572413B (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9537957B2 (en) | Seamless application session reconstruction between devices | |
WO2015184885A1 (en) | Method and device for closing background application of mobile terminal, and mobile terminal | |
CN105677477A (en) | Method and device for optimizing application program resources and electronic equipment | |
US20150154149A1 (en) | Typesetting method, device and system | |
CN103064675A (en) | Method and device for cleaning up redundant files in mobile terminal automatically | |
CN104754002A (en) | File cleaning method and device, mobile terminal and cloud-side server | |
CN104572413A (en) | Method for storing system logs by electronic equipment and electronic equipment | |
CN101645033A (en) | Debugging method in abnormality of mobile phone software | |
US8799546B2 (en) | Method and apparatus for monitoring single board running state | |
CN105354097A (en) | Data operation method and device based on clipboard and electronic equipment | |
CN111078523A (en) | Log obtaining method and device, storage medium and electronic equipment | |
CN102045397A (en) | Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals | |
CN111526289A (en) | Shooting method and device, electronic equipment and readable storage medium | |
CN113407383A (en) | Main/standby system switching method and device, server and main/standby system | |
CN102541681A (en) | CMOS (Complementary Metal-Oxide-Semiconductor) data recovery system and method | |
CN103716139A (en) | Information push processing method and information push processing device | |
CN102360303A (en) | Method for upgrading handheld terminal software, and handheld terminal | |
CN110765085A (en) | Log information writing method, system, storage medium and mobile terminal | |
CN113392028A (en) | Distributed test system and control method | |
CN103984622A (en) | Method and device for managing logs for Linux-based GPON ONU (Gigabit Passive Optical Network Optical Unit) equipment | |
CN103297454B (en) | For expanding smart mobile phone, the method for panel computer SD card memory capacity | |
US10824597B2 (en) | Cache folder identification method and device | |
CN113065083B (en) | Page processing method and device, electronic equipment and storage medium | |
CN103399803A (en) | Method and device for collecting browser breakdown information and terminal equipment | |
CN104639666A (en) | Domain name access method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201125 Address after: 221700 4-1-110-shop, Nanyuan new town, Fengxian County, Xuzhou City, Jiangsu Province Patentee after: Song Yixiao Address before: 201616 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90 Patentee before: Phicomm (Shanghai) Co.,Ltd. |