Log management method and device of intelligent terminal
1. The log management method of the intelligent terminal is characterized by comprising the following steps:
acquiring log configuration information of an intelligent terminal; wherein the log configuration information comprises: the identification name of an application program corresponding to the log and the log dividing time;
determining the target process number of the log according to the identification name of the application program;
processing the log generated by the intelligent terminal according to the target process number and the log dividing time; and the number of the first and second groups,
and storing the processed log to a target memory.
2. The method according to claim 1, wherein the processing the log generated by the intelligent terminal according to the target process number and the log splitting time comprises:
screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
and dividing the at least one target log needing to be managed according to the log dividing time.
3. The method of claim 1, after storing the processed log, further comprising:
judging whether the intelligent terminal is abnormal or not;
if the intelligent terminal is abnormal, generating an abnormal log, and uploading the abnormal log to a log platform;
if the intelligent terminal is not abnormal, generating an operation log;
storing the exception log and the operation log to the target memory.
4. The method according to any of claims 1 to 3, wherein the configuration information further comprises: the validity period of the log;
after storing the processed log to the target storage, further comprising:
and deleting the logs exceeding the validity period in the processed logs according to the validity period of the logs.
5. The method of claim 4, after storing the processed log to the target storage, further comprising:
acquiring a log query instruction for checking the log of the intelligent terminal from a log platform;
acquiring a log to be queried which needs to be viewed from the target memory according to the log query instruction;
judging whether the log to be inquired needs to be compressed or not;
if the log to be queried does not need to be compressed, uploading the log to be queried to the log platform;
and if the log to be queried needs to be compressed, compressing the log to be queried and uploading the compressed log to the log platform.
6. Intelligent terminal's log management device, its characterized in that includes: the system comprises a configuration information acquisition module, a process number determination module, a log processing module and a first log storage module;
the configuration information acquisition module is used for acquiring the log configuration information of the intelligent terminal; wherein the log configuration information comprises: the identification name of an application program corresponding to the log and the log dividing time;
the process number determining module is used for determining the target process number of the log according to the identification name of the application program acquired by the configuration information acquiring module;
the log processing module is used for processing the logs generated by the intelligent terminal according to the target process number determined by the process number determining module and the log segmentation time acquired by the configuration information acquiring module; and the number of the first and second groups,
and the first log storage module is used for storing the log processed by the log processing module to a target memory.
7. The apparatus of claim 6, wherein the log processing module is configured to:
screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
and dividing the at least one target log needing to be managed according to the log dividing time.
8. The apparatus of claim 6, further comprising: the system comprises an abnormality judgment module, a first execution module and a second log storage module;
the abnormity judgment module is used for judging whether the intelligent terminal is abnormal or not;
the first execution module is used for generating an abnormal log if the abnormality judgment module judges that the intelligent terminal is abnormal, and uploading the abnormal log to a log platform; if the intelligent terminal is not abnormal, generating an operation log;
the second log storage module is configured to store the exception log and the operation log obtained by the first execution module to the target memory.
9. The apparatus of any of claims 6 to 8, wherein the configuration information further comprises: the validity period of the log; the log management device of the intelligent terminal further comprises: a log deleting module;
and the log deleting module is used for deleting the logs exceeding the valid period in the processed logs according to the valid period of the logs.
10. The apparatus of claim 9, further comprising: the system comprises a query instruction acquisition module, a log query module, a compression judgment module and a second execution module;
the query instruction acquisition module is used for acquiring a log query instruction for checking the log of the intelligent terminal from a log platform;
the log query module is used for acquiring logs to be queried from the target storage according to the log query instruction acquired by the query instruction acquisition module;
the compression judging module is used for judging whether the log to be inquired acquired by the log acquiring module needs to be compressed or not;
the second execution module is configured to upload the log to be queried to the log platform if the compression determination module determines that the log to be queried by the log query module does not need to be compressed; if the log query module queries that the log to be queried needs to be compressed, the log to be queried is compressed and then uploaded to the log platform.
Background
The log is a key for recording various problem information in the system and is also common mass data. In order to record the operation status of the system resources of the intelligent terminal, the intelligent terminal generally has a corresponding logging system to record the information of the alarm and the timestamp of the daily event or the misoperation. The log information plays an important role in processing intelligent terminal faults and order safety management. However, the log usually records all the operating states completely, so the army margin is large, the storage is inconvenient, and unpredictable stress is caused to a central processing unit, a storage medium and the like. In addition, as the complexity of the business system increases, the filtering management method of the logs classified by keywords or levels often causes important information points to be submerged in invalid logs. Therefore, it is important to manage the log.
The patent with application number CN107402863A discloses a method and apparatus for processing logs of a service system through a log system, which filters useless logs through screening and establishes an aggregation mechanism, and integrates the filtered logs for analysis, thereby achieving the purpose of reducing the size of the logs. However, this solution puts pressure on the server storage media, and filters some useful logs when filtering and integrating the logs, which often results in poor management of the logs.
Therefore, it is desirable to provide a log management scheme for an intelligent terminal to solve the above-mentioned disadvantages.
Disclosure of Invention
The embodiment of the invention provides a log management method and device of an intelligent terminal, which can improve the effect of managing logs.
In a first aspect, an embodiment of the present invention provides a log management method for an intelligent terminal, including:
acquiring log configuration information of an intelligent terminal; wherein the log configuration information comprises: the identification name of an application program corresponding to the log and the log dividing time;
determining the target process number of the log according to the identification name of the application program;
processing the log generated by the intelligent terminal according to the target process number and the log dividing time; and the number of the first and second groups,
and storing the processed log to a target memory.
In a possible implementation manner, the processing the log generated by the intelligent terminal according to the target process number and the log dividing time includes:
screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
and dividing the at least one target log needing to be managed according to the log dividing time.
In a possible implementation manner, after storing the processed log, the method further includes:
judging whether the intelligent terminal is abnormal or not;
if the intelligent terminal is abnormal, generating an abnormal log, and uploading the abnormal log to a log platform;
if the intelligent terminal is not abnormal, generating an operation log;
storing the exception log and the operation log to the target memory.
In a possible implementation manner, the configuration information further includes: the validity period of the log;
after storing the processed log to the target storage, further comprising:
and deleting the logs exceeding the validity period in the processed logs according to the validity period of the logs.
In one possible implementation, after storing the processed log in the target storage, the method further includes:
acquiring a log query instruction for checking the log of the intelligent terminal from a log platform;
acquiring a log to be queried which needs to be viewed from the target memory according to the log query instruction;
judging whether the log to be inquired needs to be compressed or not;
if the log to be queried does not need to be compressed, uploading the log to be queried to the log platform;
and if the log to be queried needs to be compressed, compressing the log to be queried and uploading the compressed log to the log platform.
In a second aspect, an embodiment of the present invention further provides a log management apparatus for an intelligent terminal, including: the system comprises a configuration information acquisition module, a process number determination module, a log processing module and a first log storage module;
the configuration information acquisition module is used for acquiring the log configuration information of the intelligent terminal; wherein the log configuration information comprises: the identification name of an application program corresponding to the log and the log dividing time;
the process number determining module is used for determining the target process number of the log according to the identification name of the application program acquired by the configuration information acquiring module;
the log processing module is used for processing the logs generated by the intelligent terminal according to the target process number determined by the process number determining module and the log segmentation time acquired by the configuration information acquiring module; and the number of the first and second groups,
and the first log storage module is used for storing the log processed by the log processing module to a target memory.
In one possible implementation manner, the log processing module is configured to perform the following operations:
screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
and dividing the at least one target log needing to be managed according to the log dividing time.
In one possible implementation, the method further includes: the system comprises an abnormality judgment module, a first execution module and a second log storage module;
the abnormity judgment module is used for judging whether the intelligent terminal is abnormal or not;
the first execution module is used for generating an abnormal log if the abnormality judgment module judges that the intelligent terminal is abnormal, and uploading the abnormal log to a log platform; if the intelligent terminal is not abnormal, generating an operation log;
the second log storage module is configured to store the exception log and the operation log obtained by the first execution module to the target memory.
In a possible implementation manner, the configuration information further includes: the validity period of the log; the log management device of the intelligent terminal further comprises: a log deleting module;
and the log deleting module is used for deleting the logs exceeding the valid period in the processed logs according to the valid period of the logs.
In one possible implementation, the method further includes: the system comprises a query instruction acquisition module, a log query module, a compression judgment module and a second execution module;
the query instruction acquisition module is used for acquiring a log query instruction for checking the log of the intelligent terminal from a log platform;
the log query module is used for acquiring logs to be queried from the target storage according to the log query instruction acquired by the query instruction acquisition module;
the compression judging module is used for judging whether the log to be inquired acquired by the log acquiring module needs to be compressed or not;
the second execution module is configured to upload the log to be queried to the log platform if the compression determination module determines that the log to be queried by the log query module does not need to be compressed; if the log query module queries that the log to be queried needs to be compressed, the log to be queried is compressed and then uploaded to the log platform.
According to the technical scheme, when the log of the intelligent terminal is managed, the log configuration information including the identification name of the application program corresponding to the log, the log dividing time and the like needs to be acquired, and then the target process number corresponding to the log is determined according to the identification name of the application program. And further, processing the log generated by the intelligent terminal according to the target process number and the log dividing time, and storing the processed log into a target memory. Therefore, the log is processed through the log configuration information such as the log division time, so that the log can be processed according to certain requirements, such as filtering, sorting, classifying and the like, and the log can be effectively managed. And then, the processed log is stored in a specific target memory, so that a user can quickly inquire the log record, and the abnormity of the intelligent terminal is analyzed according to the log record so as to solve the abnormity problem as soon as possible.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a log management method of an intelligent terminal according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method for processing logs according to an embodiment of the present invention;
fig. 3 is a flowchart of another log management method of an intelligent terminal according to an embodiment of the present invention;
fig. 4 is a flowchart of a log management method of an intelligent terminal according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a log management apparatus of an intelligent terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another log management apparatus of an intelligent terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a log management apparatus of another intelligent terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As before, the log can record various problem information in the system. For example, the intelligent terminal records information about daily events, misoperation alarms, timestamps and the like through a recording system, so as to record the operating conditions of the system resources of the intelligent terminal. However, since the log needs to completely record all the operating states, the redundancy of the generated log may be large, thereby causing problems such as storage inconvenience, and unpredictable stress on the central processing unit, the storage medium, and the like. There is a need for effective management of logs.
At present, when the logs are managed, the scheme often adopted is to screen the logs and establish an aggregation mechanism, and the filtered logs are integrated and then analyzed. Although the method can reduce the size of the log, the method can cause pressure on a server performing processing operation, and in addition, useful logs can be filtered during filtering, so that the log management effect is poor.
Based on this, the present solution considers that the specific processing is performed on the log by the log configuration information, for example, the log is stored separately according to the log division time, and thus not only the memory pressure can be reduced, but also the effect of log management can be improved. In addition, after the log is processed, the log is considered to be stored in a specific memory, so that a user can quickly inquire to solve problems such as the occurrence of an abnormality of the intelligent terminal.
The following describes the log management method and apparatus of the intelligent terminal provided by the present invention in further detail.
As shown in fig. 1, an embodiment of the present invention provides a log management method for an intelligent terminal, where the method may include the following steps:
step 101: acquiring log configuration information of an intelligent terminal; wherein the log configuration information includes: the identification name of an application program corresponding to the log and the log dividing time;
step 102: determining a target process number of the log according to the identification name of the application program;
step 103: processing the log generated by the intelligent terminal according to the target process number and the log segmentation time; and the number of the first and second groups,
step 104: and storing the processed log to a target memory.
In the embodiment of the invention, when the log of the intelligent terminal is managed, the log configuration information including the identification name of the application program corresponding to the log, the log dividing time and the like is firstly acquired, and then the target process number corresponding to the log is determined according to the identification name of the application program. And further, processing the log generated by the intelligent terminal according to the target process number and the log dividing time, and storing the processed log into a target memory. Therefore, the log is processed through the log configuration information such as the log division time, so that the log can be processed according to certain requirements, such as filtering, sorting, classifying and the like, and the log can be effectively managed. And then, the processed log is stored in a specific target memory, so that a user can quickly inquire the log record, and the abnormity of the intelligent terminal is analyzed according to the log record so as to solve the abnormity problem as soon as possible.
In step 101, when obtaining log configuration information of the intelligent terminal, the log configuration information may include an identification name of an application program corresponding to the log, such as a package name of an application program app corresponding to the log, and may further include log dividing time used for determining how long the logs need to be divided together, a validity period of the log, and the like.
After the log configuration information of the intelligent terminal is acquired, the target process number of the log needs to be determined according to the identification name of the application program in the log configuration information. For example, if the identification name of the application program corresponding to the log is WeChat, or the application program app is WeChat, the target process number of the log can be determined to be the process number of the WeChat according to the identification name of the application program. Therefore, when the log is managed, the log corresponding to the application degree of the WeChat can be managed according to the process number of the WeChat.
After the target process number of the log is obtained, the log can be processed by combining the log configuration information of the intelligent terminal. In a possible implementation manner, as shown in fig. 2, when the log generated by the intelligent terminal is processed according to the target process number and the log splitting time, step 103 may be implemented by the following steps:
step 201: screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
step 202: and dividing at least one target log needing to be managed according to the log dividing time.
In the embodiment of the invention, when the target process number of the log is obtained, the log corresponding to the target process number can be determined to be required to be processed. Therefore, according to the target process number, a target log needing to be managed can be determined from logs generated by a plurality of intelligent terminals, namely, a log corresponding to the target process number is screened from all logs. Further, the obtained logs are divided according to the log dividing time, so that the logs can be effectively managed according to the frequency of log generation or the frequency of equipment operation.
When at least one target log to be managed is divided into log division times in step 202, different log division times may be set in consideration of the number of logs generated or the frequency of generating logs according to the current terminal or the current time period. For example, if the frequency of generating the log by one terminal is high, the log division time may be set to 2 hours, and if the frequency of generating the log by another terminal is low, the log division time may be set to 4 hours. For another example, in the time period from 09:00 to 21:00, the frequency of generating the log is large, and then the log division time in the time period can be set to be 2 hours; in the period of 21:00 to 09:00, the frequency of generating the log is small, and the log division time in the period may be set to 4 hours. Therefore, according to different scenes and requirements, different log partition times are adopted, and efficient management of the logs of the intelligent terminal can be achieved.
In a possible implementation manner, as shown in fig. 3, after storing the processed log, the following steps may be further included:
step 301: judging whether the intelligent terminal is abnormal or not;
step 302: if the intelligent terminal is abnormal, generating an abnormal log, and uploading the abnormal log to a log platform;
step 303: if the intelligent terminal is not abnormal, generating an operation log;
step 304: and storing the exception log and the operation log to a target memory.
In the embodiment of the invention, after the processed log is stored, whether the intelligent terminal is abnormal or not can be further judged, if the intelligent terminal is abnormal, an abnormal log is correspondingly generated, and the abnormal log is uploaded to the log platform. And if the intelligent terminal is not abnormal, generating an operation log. And finally, storing an abnormal log generated when the intelligent terminal is abnormal and an operation log generated when the intelligent terminal is abnormal into a preset target memory.
Therefore, the logs generated by the intelligent terminal can be stored in real time, the logs generated by the intelligent terminal can be divided into the logs generated when the intelligent terminal is abnormal and the logs generated when the intelligent terminal is abnormal, so that the logs are divided, the user can trace the source of the intelligent terminal when the intelligent terminal is abnormal, the reason why the intelligent terminal is abnormal is rapidly determined, and the problem that the corresponding intelligent terminal is abnormal is rapidly solved.
In one possible implementation, if the configuration information further includes the validity period of the log, the expired log may be further filtered. For example, after storing the processed log in the target storage, the log exceeding the validity period in the processed log may be deleted according to the validity period of the log. By regularly clearing the expired log, the storage pressure of the memory can be greatly released.
In a possible implementation manner, compression processing can be performed on the log when log query is performed from the log platform, so that stress on the server is caused by the log. As shown in fig. 4, the method may specifically include the following steps:
step 401: acquiring a log query instruction for checking a log of the intelligent terminal from a log platform;
step 402: acquiring a log to be queried to be checked from a target memory according to a log query instruction;
step 403: judging whether the log to be inquired needs to be compressed or not;
step 404: if the log to be queried does not need to be compressed, uploading the log to be queried to a log platform;
step 405: and if the log to be queried needs to be compressed, compressing the log to be queried and uploading the compressed log to a log platform.
In the embodiment of the invention, after the processed log is stored in the target memory, if a user needs to query the related log, a log query instruction for checking the log of the intelligent terminal needs to be acquired from the log platform, and then the log to be queried, which needs to be checked, is acquired from the target memory according to the log query instruction. Further judging whether the log to be inquired needs to be compressed or not, and uploading the log to be inquired to a log platform when the log does not need to be compressed; and when compression is needed, compressing the log to be queried and uploading the compressed log to a log platform.
For example, when the memory occupied by the queried log is very large, the log to be queried needs to be compressed and then uploaded to the log platform, so that the pressure on the server caused by the large memory occupied by the log can be reduced, and meanwhile, the log uploading efficiency can be improved.
In addition, it is easy to understand that when a log query instruction is obtained from a log platform and a log to be queried is obtained according to the log query instruction, the log query instruction can be queried according to time, a process number, or two requirements. For example, a log corresponding to the wechat process number may be queried; as another example, a log between 09:00 and 11:00 on a device may be queried; for another example, a log corresponding to a micro-message process number between 09:00 and 11:00 can be queried.
The following describes a log management method of an intelligent terminal according to another embodiment of the present invention in further detail.
The embodiment of the invention aims to provide a log scheme of an intelligent terminal, which can reduce the pressure of too many logs on a server medium. Meanwhile, the functions of log active viewing, abnormal log tracking and the like are provided, the integrity of the log is ensured, the reason of the abnormality can be quickly analyzed through the log, and the abnormal problem of the equipment can be quickly processed.
In order to optimize the defects of the log system of the existing unmanned intelligent equipment, the invention develops a log scheme of an intelligent terminal based on an android system, and the log system of the intelligent terminal can comprise: the method comprises the steps of storing, compressing, deleting, updating and uploading the android sdk package based on the android system, a log platform for remotely checking and analyzing the log, a log storage strategy based on the android system and the like. The Android sdk package is mainly responsible for log storage, updating, deleting, compressing and uploading of the unmanned intelligent device, and the log platform is mainly responsible for log uploading and remote viewing of the unmanned intelligent device.
The log management scheme of the intelligent terminal provided by the embodiment is more perfect. The log is stored in the storage medium of the unmanned intelligent terminal, and the stored log is compressed, so that the pressure of too many logs on the server medium is reduced. Meanwhile, the log platform is provided, abnormal logs of the intelligent terminal can be checked quickly, the checked logs are not filtered, the integrity of the logs is guaranteed, the abnormality can be analyzed quickly according to the logs, and the abnormal problem is solved.
For example, in a possible implementation manner, the scheme corresponding to the log management scheme of the intelligent terminal may be implemented by the following components
1. The android sdk package is responsible for log storage, updating, deleting, compressing and uploading;
2. the intelligent terminal is responsible for generating logs;
3. the log platform is responsible for uploading and checking logs;
in a possible implementation manner, the log management method of the intelligent terminal may include the following steps:
1. starting the equipment;
2. acquiring log configuration of the intelligent terminal, wherein the log configuration comprises an app package name corresponding to a stored log, time setting of log segmentation and effective date of the log;
3. acquiring a process number of a log to be stored according to an app package name configured by the log of the intelligent terminal;
4. dividing the logs generated in the operation of the intelligent terminal into a plurality of periods of time according to the time setting of log division configured by the logs of the intelligent terminal;
5. after the log is stored in the storage medium of the intelligent terminal, whether the current storage medium contains the log with the expired validity period or not is judged according to the validity period of the log in the log configuration, if so, the current storage medium is deleted, and if not, the current storage medium is ended;
6. when receiving a log checking message of a log platform, analyzing the log message and acquiring a log to be uploaded;
7. judging whether the log needing to be uploaded needs to be compressed or not, if the log does not need to be compressed, directly uploading the log, and if the log needs to be compressed, firstly compressing the log and then uploading the log;
8. when the intelligent terminal has a fault, reporting the fault of the intelligent terminal to a log platform;
in one possible implementation, the process of viewing the log from the log platform may include the following steps:
1. logging in a log platform;
2. finding out equipment needing to check the log;
3. setting a log uploading time period according to the reported fault or other information;
4. downloading the uploaded logs;
5. analyzing the uploaded logs;
according to the technical scheme, the log management scheme of the intelligent terminal at least comprises the following beneficial effects:
1. the storage position of the log at the equipment end is optimized, the log is stored in the server corresponding to the log platform, and the log is stored in the equipment terminal, so that the pressure of the log on a server storage medium is reduced;
2. the management machine for log addition, deletion, modification and check is optimized, and the log is moved from the cloud of the log platform to the equipment end, so that the pressure of the cloud of the log platform for managing the logs is reduced;
3. the log analysis process is optimized, the log analysis and optimization of the log platform are moved to a log analysis terminal, and the pressure of the log platform for analyzing the log at the cloud end is reduced;
4. the log uploading strategy is optimized, the log uploading timing mechanism is modified into a log uploading configuration mechanism and a log uploading message mechanism, the log uploading strategy is perfected, and the logs to be analyzed can be timely and quickly obtained;
as shown in fig. 5, an embodiment of the present invention further provides a log management apparatus for an intelligent terminal, where the apparatus may include: a configuration information acquisition module 501, a process number determination module 502, a log processing module 503 and a first log storage module 504;
a configuration information obtaining module 501, configured to obtain log configuration information of the intelligent terminal; wherein the log configuration information includes: the identification name of an application program corresponding to the log and the log dividing time;
a process number determining module 502, configured to determine a target process number of the log according to the identifier of the application acquired by the configuration information acquiring module 501;
the log processing module 503 is configured to process the log generated by the intelligent terminal according to the target process number determined by the process number determining module 502 and the log division time acquired by the configuration information acquiring module 501; and the number of the first and second groups,
a first log storage module 504, configured to store the log processed by the log processing module 503 into the target memory.
In one possible implementation, the log processing module 503 is configured to perform the following operations:
screening at least one target log needing to be managed from the logs generated by the intelligent terminal according to the target process number;
and dividing at least one target log needing to be managed according to the log dividing time.
In a possible implementation manner, as shown in fig. 6, the log management apparatus of the intelligent terminal may further include: an abnormality judgment module 505, a first execution module 506 and a second log storage module 507;
an anomaly judgment module 505, configured to judge whether the intelligent terminal is abnormal;
a first executing module 506, configured to generate an abnormal log if the abnormality determining module 505 determines that the intelligent terminal is abnormal, and upload the abnormal log to a log platform; if the intelligent terminal is not abnormal, generating an operation log;
the second log storage module 507 is configured to store the exception log and the operation log obtained by the first execution module 506 to the target memory.
In one possible implementation, the configuration information further includes: the validity period of the log; the log management device of the intelligent terminal further comprises: a log deleting module;
and the log deleting module is used for deleting the logs exceeding the validity period in the processed logs according to the validity period of the logs.
In a possible implementation manner, as shown in fig. 7, the log management apparatus of the intelligent terminal may further include: a query instruction acquisition module 508, a log query module 509, a compression judgment module 510 and a second execution module 511;
a query instruction obtaining module 508, configured to obtain a log query instruction for viewing a log of the intelligent terminal from the log platform;
a log query module 509, configured to obtain a log to be queried from the target memory according to the log query instruction obtained by the query instruction obtaining module 508;
a compression determining module 510, configured to determine whether the log to be queried acquired by the log acquiring module needs to be compressed;
a second executing module 511, configured to upload the log to be queried, queried by the log querying module 509, to the log platform if the compression determining module 510 determines that the log to be queried does not need to be compressed; if the log to be queried needs to be compressed, the log to be queried by the log query module 509 is compressed and then uploaded to the log platform.
It is to be understood that the schematic structure in the embodiment of the present invention does not form a specific limitation on the log management device of the intelligent terminal. In other embodiments of the present invention, the log management device of the intelligent terminal may include more or fewer components than those shown, or combine some components, or split some components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Because the content of information interaction, execution process, and the like among the modules in the device is based on the same concept as the method embodiment of the present invention, specific content can be referred to the description in the method embodiment of the present invention, and is not described herein again.
An embodiment of the present invention further provides a computing device, including: at least one memory and at least one processor;
at least one memory for storing a machine readable program;
at least one processor, configured to invoke a machine-readable program to execute the log management method of the intelligent terminal in any embodiment of the present invention.
An embodiment of the present invention also provides a computer-readable medium storing instructions for causing a computer to execute the log management method of the smart terminal as described herein. Specifically, a method or an apparatus equipped with a storage medium on which a software program code that realizes the functions of any of the above-described embodiments is stored may be provided, and a computer (or a CPU or MPU) of the method or the apparatus is caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments can be implemented not only by executing the program code read out by the computer, but also by performing a part or all of the actual operations by an operation method or the like operating on the computer based on instructions of the program code.
The foregoing description of specific embodiments of the present invention has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above embodiments are only for illustrating the embodiments of the present invention and are not to be construed as limiting the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the embodiments of the present invention shall be included in the scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种文件操作IP溯源方法和系统