CN105335434A - Log management method and device, and electronic equipment - Google Patents
Log management method and device, and electronic equipment Download PDFInfo
- Publication number
- CN105335434A CN105335434A CN201410392273.5A CN201410392273A CN105335434A CN 105335434 A CN105335434 A CN 105335434A CN 201410392273 A CN201410392273 A CN 201410392273A CN 105335434 A CN105335434 A CN 105335434A
- Authority
- CN
- China
- Prior art keywords
- daily record
- log
- rear end
- log system
- intermediate language
- 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
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a log management method and device, and electronic equipment, and belongs to the technical field of computer. The method comprises the following steps: using a log front end of a log system to generate a log; converting the log into the log which is described by an intermediate language; and utilizing a log rear end corresponding to the log front end in the log system to output the log which is described by the intermediate language into an object corresponding to the log rear end. A log system divided into the log front end and the log rear end, the log generated on the log front end is converted into the intermediate language, then, the corresponding log rear end is utilized to output the log which is described by the intermediate language into the corresponding object, so that the problem of poor log output direction expansibility since the log generation and the log output of the log system are commonly realized as a whole in the prior art can be solved, and the effects that new log types can be conveniently added to the log system and the output direction of the log rear end is more flexible and can be more easily expanded are achieved.
Description
Technical field
The present invention relates to field of computer technology, particularly a kind of blog management method, device and electronic equipment.
Background technology
The various actions (comprising system action, user behavior and network behavior etc.) that log system in client can produce client manage, such as these behaviors can be carried out recording and output in different objects by log system in a particular format, and object said here can be that control desk, file, application interface rear end and network are medium.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: for day by day diversified client, may at any time newtype daily record be outputted in new object, and existing log system is generating daily record and carrying out realizing usually used as an entirety when daily record exports, poor to the extendability of daily record outbound course.
Summary of the invention
Realize usually used as an entirety when generating daily record and carry out daily record output to solve log system in prior art, the problem poor to the extendability of daily record outbound course, embodiments provides a kind of blog management method, device and electronic equipment.Described technical scheme is as follows:
First aspect, provides a kind of blog management method, and be applied in the log system including daily record front end and daily record rear end, described method comprises:
The daily record front end of described log system is utilized to generate daily record;
Described daily record is converted to the daily record utilizing intermediate language to describe;
Utilize daily record rear end corresponding with described daily record front end in described log system, the described daily record utilizing intermediate language to describe is outputted in the object corresponding with described daily record rear end.
Second aspect, provides a kind of log management apparatus, and be applied in the log system including daily record front end and daily record rear end, described device comprises:
Daily record generation module, generates daily record for utilizing the daily record front end of described log system;
Language conversion module, converts for the described daily record generated by described daily record generation module the daily record utilizing intermediate language to describe to;
Journal output module, for utilizing daily record rear end corresponding with described daily record front end in described log system, outputs to the daily record that described language conversion module utilizes described intermediate language to describe in the object corresponding with described daily record rear end.
The third aspect, provides a kind of electronic equipment, is provided with the log system comprising daily record front end and daily record rear end in described electronic equipment, and described electronic equipment comprises:
Touch-screen display, one or more than one processor;
Storer;
And one or more than one program, wherein said more than one or one program is stored in described storer, and be configured to be performed by described more than one or one processor, described more than one or one routine package is containing the instruction for carrying out following operation:
The daily record front end of described log system is utilized to generate daily record;
Described daily record is converted to the daily record utilizing intermediate language to describe;
Utilize daily record rear end corresponding with described daily record front end in described log system, the described daily record utilizing intermediate language to describe is outputted in the object corresponding with described daily record rear end.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By log system being divided into daily record front end and daily record rear end, and converting the daily record that daily record front end generates to intermediate language, then utilizing corresponding daily record rear end the daily record utilizing intermediate language to describe to be exported in corresponding object, because the daily record front end of log system and daily record rear end separate, no matter and which kind of language compilation daily record front end is, the daily record generated all can be converted into intermediate language, such daily record rear end total energy identifies the daily record that daily record front end generates, therefore the restriction of language is not described in daily record rear end by daily record front end, daily record front end is not also by the restriction of daily record rear end simultaneously, thus make daily record front end more convenient when adding the daily record of New raxa, and daily record rear end does not affect daily record front end when expanding yet, therefore solve log system in prior art to realize usually used as an entirety when generating daily record and carry out daily record output, the problem poor to the extendability of daily record outbound course, reach can so that log system add newtype daily record, daily record rear end outbound course more flexible, and the effect that the outbound course of daily record rear end is more easily expanded.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the blog management method provided in one embodiment of the invention;
Fig. 2 A is the method flow diagram of the blog management method provided in another embodiment of the present invention;
Fig. 2 B is the structural representation of the log system provided in section Example of the present invention;
Fig. 3 is the structural representation of the log management apparatus provided in one embodiment of the invention;
Fig. 4 is the structural representation of the log management apparatus provided in another embodiment of the present invention;
Fig. 5 is the structural representation of the electronic equipment provided in section Example of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Log system is provided with in electronic equipment involved in each embodiment of the present invention, such as can for being arranged on the log system of application program or client in electronic equipment, also such as can log system corresponding to electronic equipment operating system, also such as can for the log system in browser in electronic equipment corresponding to webpage client, here said electronic equipment can be smart mobile phone, panel computer, intelligent television, E-book reader, MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee and desk-top computer etc.
Shown in Figure 1, the method flow diagram of the blog management method provided in one embodiment of the invention is provided, this blog management method can be applied in the log system in electronic equipment or can be applied in the log system in electronic equipment in any application, and log system said here can comprise daily record front end and daily record rear end.This blog management method can comprise:
101, utilize the daily record front end of log system to generate daily record;
For the ease of the expansion of daily record kind in log system and the expansion of daily record outbound course, log system can be divided into user and generate the daily record front end of daily record and be used for the daily record rear end of output journal.Daily record front end and daily record rear end separate.
Corresponding, log system can utilize daily record front end to generate daily record.
102, daily record is converted to the daily record utilizing intermediate language to describe;
Intermediate language is generalized edit language, no matter which kind of language compilation the daily record that daily record front end generates like this utilizes, this intermediate language all can be utilized to be described, and the daily record that intermediate language describes all can be identified in any one daily record rear end, therefore for daily record rear end, the language of daily record front end does not affect the identification of daily record rear end yet.
103, utilize daily record rear end corresponding with daily record front end in log system, the daily record described utilizing intermediate language outputs in the object corresponding with daily record rear end.
In sum, the blog management method provided in the embodiment of the present invention, by log system being divided into daily record front end and daily record rear end, and convert the daily record that daily record front end generates to intermediate language, then utilize corresponding daily record rear end the daily record utilizing intermediate language to describe to be exported in corresponding object, because the daily record front end of log system and daily record rear end separate, no matter and which kind of language compilation daily record front end is, the daily record generated all can be converted into intermediate language, such daily record rear end total energy identifies the daily record that daily record front end generates, therefore the restriction of language is not described in daily record rear end by daily record front end, daily record front end is not also by the restriction of daily record rear end simultaneously, thus make daily record front end more convenient when adding the daily record of New raxa, and daily record rear end does not affect daily record front end when expanding yet, therefore solve log system in prior art to realize usually used as an entirety when generating daily record and carry out daily record output, the problem poor to the extendability of daily record outbound course, reach can so that log system add newtype daily record, daily record rear end outbound course more flexible, and the effect that the outbound course of daily record rear end is more easily expanded.
Refer to shown in Fig. 2 A, the method flow diagram of the blog management method provided in another embodiment of the present invention is provided, this blog management method can be applied in the log system in electronic equipment or can be applied in the log system in electronic equipment in any application, and log system said here can comprise daily record front end and daily record rear end.This blog management method can comprise:
201, utilize the daily record front end receiver log parameters of log system, the Log Types corresponding to daily record front end is identical with the type of the daily record that log parameters will generate;
For the ease of the expansion of daily record kind in log system and the expansion of daily record outbound course, log system can be divided into user and generate the daily record front end of daily record and be used for the daily record rear end of output journal.Daily record front end and daily record rear end separate.
Wherein, there are independently base class, standard interface and development specifications in daily record front end, and also there are independently base class, standard interface and development specifications in daily record rear end, and also, daily record front end and daily record rear end all can independently be developed and expand.
Optionally, log system can comprise at least one daily record front end and at least one daily record rear end, refer to shown in Fig. 2 B, the structural representation of the log system provided in section Example of the present invention is provided, this log system can comprise multiple daily record front end (1 to daily record front end, daily record front end m) and multiple daily record rear end (1 to daily record rear end, daily record rear end n), wherein m be greater than 0 natural number, n be greater than 0 natural number, m can be identical with n, and m also can be different from n.For the log system in application program, in log system, the quantity of daily record front end is determined by the number of the Log Types of this application program, and such as, in log system, the quantity of daily record front end is equal to the number of Log Types; In log system, the data of daily record rear end are determined by the object of this application program, and such as, in log system, the quantity of daily record rear end is equal to the number of daily record object.
Log parameters is the necessary parameter generating daily record, and in order to guarantee correctly to generate daily record, log system needs the daily record front end receiver log parameters utilizing log system.
In order to meet consumers' demand, improve the utilization rate of application program, daily record kind involved in application program can be increasing, therefore the daily record kind that the new daily record front end of increase newly increases to process these is needed, for the ease of the expansion of daily record front end, daily record front end can arrange standard interface, and this standard interface may be used for receiving the log parameters corresponding with this daily record front end.
Generally, all unique corresponding a kind of Log Types in each daily record front end in log system, Log Types said here is the type of daily record, can be such as network log, user behaviors log etc.Similar, each daily record rear end also unique corresponding a kind of Log Types of log system.
Log Types corresponding to daily record front end is identical with the type of the daily record that log parameters will generate.That is, the log parameters of a certain daily record is imported into the daily record front end corresponding with the Log Types of this daily record, and this daily record front end then can receive the log parameters of this daily record according to standard interface.
202, generate daily record in daily record front end according to log parameters;
After the daily record front end of log system receives log parameters according to standard interface, daily record can be generated according to the log parameters received.
203, daily record is converted to the daily record utilizing intermediate language to describe;
Intermediate language is generalized edit language, no matter which kind of language compilation the daily record that daily record front end generates like this utilizes, this intermediate language all can be utilized to be described, and the daily record that intermediate language describes all can be identified in any one daily record rear end, therefore for daily record rear end, the language of daily record front end does not affect the identification of daily record rear end yet.
In order to ensure being separated of daily record front end and daily record rear end, to ensure to develop the independence of daily record front end and the independence of exploitation daily record rear end, and then avoid daily record front end and daily record rear end the influencing each other to the other side when developing, the daily record front end of log system is after generating daily record according to log parameters, and the middle layer of log system can convert the daily record that daily record front end generates to utilize intermediate language to describe daily record.
Still see shown in Fig. 2 B, also middle layer is there is between the daily record front end and daily record rear end of log system, connected by this middle layer between daily record front end and daily record rear end, this middle layer can utilize intermediate language the daily record that daily record front end generates to be redescribed.
Here said intermediate language can for carrying out the binary stream etc. of generic compilation.In actual applications, the language that this intermediate language can also can carry out generic compilation for other, embodiments of the invention are not restricted this.
Because intermediate language is not subject to the restriction of writing language of writing language and daily record rear end of daily record front end, the daily record that therefore arbitrary daily record front end generates all can be converted into the daily record utilizing this intermediate language to describe.
204, according to the corresponding relation of the daily record front end prestored in log system and daily record rear end, determine the daily record rear end corresponding with the daily record front end generating daily record, the daily record front end in each group corresponding relation and the daily record of daily record rear end corresponding to same type;
In actual applications, can carry out corresponding to the daily record front end of log system with daily record rear end in advance, with the daily record front end after correspondence and daily record rear end, log system outputs in the daily record rear end corresponding with this daily record front end after the daily record that this daily record front end generates can being utilized intermediate language to describe.
Optionally, daily record configuration management submodule can be provided with in log system, log recording person can utilize this daily record configuration management submodule and Log Types, correspondence is carried out to the daily record front end in log system and daily record rear end, to form corresponding relation, the daily record front end often in group corresponding relation and daily record rear end correspond to the daily record of same type.
For example, when log system initialization, according to Log Types, corresponding configuration can be carried out in the daily record front end in log system and daily record rear end in advance, the daily record that daily record front end after being configured like this generates can be output to corresponding daily record rear end, and exports according to daily record rear end.
Again for example, if configured the corresponding relation between daily record front end and daily record rear end in log system, along with the increase of Log Types, daily record front end also can increase for the Log Types increased, now in order to ensure that the daily record that the daily record front end newly increased generates can be output, then need the daily record front end of increase to carry out corresponding with certain or some daily record rear ends, now then can carry out the configuration of corresponding relation between daily record front end and daily record rear end by the daily record configuration management submodule in log system.
It can thus be appreciated that, for the daily record front end not being configured with corresponding relation, even if this daily record front end generates daily record, but because this daily record front end is not configured with corresponding daily record rear end, therefore the daily record that this daily record front end generates cannot be outputted to daily record rear end, now then can affect the output of daily record, cause daily record to make mistakes; Also known, for the daily record rear end not being configured with corresponding relation, because it is not configured with corresponding daily record front end, the daily record that daily record front end generates therefore cannot be received, just daily record cannot be exported, now this daily record rear end does not just have output function yet.
205, utilize daily record rear end corresponding with daily record front end in log system, the daily record described utilizing intermediate language outputs in the object corresponding with daily record rear end.
Object can provide the form of expression corresponding with the Log Types of daily record for daily record, and such as these objects can represent daily record, print log or storing daily record etc., and for example, object can be control desk, file, application interface or network etc.
Optionally, at least one function that the standard interface definition of each daily record rear end object corresponding with daily record rear end has, also namely the standard interface of daily record rear end can be that the corresponding object exported in this daily record rear end specifies at least one function.Such as can comprise: synchronously read existing log content, asynchronous write daily record, asynchronous deletion one (or whole) daily record etc.Often kind of concrete daily record rear module realizes part or all of interface separately.Such as control desk rear end does not realize synchronously reading interface, the whole interfaces of file back-end realization etc.
Because daily record rear end has abstract standard interface, and only receive the daily record utilizing intermediate voice to describe, therefore daily record rear end is not subject to the impact of daily record front end, and namely each daily record rear end all can stand-alone development, and arbitrary extension can be carried out in daily record rear end.
For example, can have inheritance between daily record rear end and daily record rear end, such as, daily record rear end 1 is the daily record rear end of unrestricted file size, daily record rear end 2 is the file rear ends for limiting file size, and now daily record rear end 1 can be inherited in 2, daily record rear end.Obviously, two file rear end, the file rear end of band core buffer, the user interface rear end etc. daily record be illustrated on screen can also be produced easily.
As from the foregoing, because log system can utilize intermediate language to be connected with daily record rear end daily record front end, therefore can ensure that stand-alone development and expansion are carried out in daily record front end and daily record rear end, the be more convenient for newly-increased expansion of type daily record and the expansion of output form.When the newly-increased type of needs, then can increase a daily record front end corresponding with this newly-increased type newly, and this daily record front end and certain or some daily record rear ends are carried out correspondingly (to carry out corresponding with already present daily record rear end, also also can need to generate new daily record rear end during corresponding renewal in the way of output, and carry out correspondence in newly-generated daily record rear end), then this daily record front end is utilized to generate corresponding daily record, the daily record that this daily record front end generates utilizes intermediate voice to be described by middle layer, and the daily record utilizing intermediate voice to describe is exported to daily record rear end corresponding to daily record front end newly-increased with this, daily record then can be exported to corresponding object by corresponding daily record rear end.
That is, when daily record Extended-type, can the daily record front end of corresponding expansion log system, when the Directional Extension exported, can the daily record rear end of corresponding expansion log system.When expanding daily record front end, daily record front end can not simultaneously be expanded; When expanding daily record front end, can determine whether to expand daily record rear end according to actual conditions (outbound course the need of new).Thus it is new to ensure that log system more can be adapted to the increasing day by day of Log Types, and more can expand the outbound course of daily record, when expanding, do not need to modify to original daily record front end and daily record rear end, be convenient to the maintenance of log system, and can upgrade cost be saved.
In sum, the blog management method provided in the embodiment of the present invention, by log system being divided into daily record front end and daily record rear end, and convert the daily record that daily record front end generates to intermediate language, then utilize corresponding daily record rear end the daily record utilizing intermediate language to describe to be exported in corresponding object, because the daily record front end of log system and daily record rear end separate, no matter and which kind of language compilation daily record front end is, the daily record generated all can be converted into intermediate language, such daily record rear end total energy identifies the daily record that daily record front end generates, therefore the restriction of language is not described in daily record rear end by daily record front end, daily record front end is not also by the restriction of daily record rear end simultaneously, thus make daily record front end more convenient when adding the daily record of New raxa, and daily record rear end does not affect daily record front end when expanding yet, therefore solve log system in prior art to realize usually used as an entirety when generating daily record and carry out daily record output, the problem poor to the extendability of daily record outbound course, reach can so that log system add newtype daily record, daily record rear end outbound course more flexible, and the effect that the outbound course of daily record rear end is more easily expanded.
It should be added that, in actual applications, the daily record generated can also be optimized middle layer unification between the daily record front end of log system and daily record rear end, also be, after daily record being converted to the daily record utilizing intermediate language to describe, according to the principle of optimality preset, the daily record described by intermediate language is optimized.Here the said principle of optimality preferentially can set according to actual conditions, such as can add constant mark for daily record or compress etc. the daily record that intermediate language describes.Optionally, can also to wherein part front end export and the daily record utilizing intermediate language to describe be optimized.
Shown in Figure 3, the structural representation of the log management apparatus provided in one embodiment of the invention is provided, this log management apparatus can by hardware, software or both combine and realize becoming all or part of of log system in electronic equipment, or can by hardware, software or both combine and realize becoming in electronic equipment all or part of of log system in any application, log system said here can comprise daily record front end and daily record rear end.This log management apparatus can comprise: daily record generation module 302, language conversion module 304 and journal output module 306.
This daily record generation module 302, may be used for utilizing the daily record front end of log system to generate daily record;
For the ease of the expansion of daily record kind in log system and the expansion of daily record outbound course, log system can be divided into user and generate the daily record front end of daily record and be used for the daily record rear end of output journal.Daily record front end and daily record rear end separate.
This language conversion module 304, may be used for converting the daily record that daily record generation module 302 generates to utilize intermediate language to describe daily record;
Intermediate language is generalized edit language, no matter which kind of language compilation the daily record that daily record front end generates like this utilizes, this intermediate language all can be utilized to be described, and the daily record that intermediate language describes all can be identified in any one daily record rear end, therefore for daily record rear end, the language of daily record front end does not affect the identification of daily record rear end yet.
This journal output module 306, may be used for utilizing daily record rear end corresponding with daily record front end in log system, the daily record that language conversion module 304 utilizes intermediate language to describe is outputted in the object corresponding with daily record rear end.
In sum, the log management apparatus provided in the embodiment of the present invention, by log system being divided into daily record front end and daily record rear end, and convert the daily record that daily record front end generates to intermediate language, then utilize corresponding daily record rear end the daily record utilizing intermediate language to describe to be exported in corresponding object, because the daily record front end of log system and daily record rear end separate, no matter and which kind of language compilation daily record front end is, the daily record generated all can be converted into intermediate language, such daily record rear end total energy identifies the daily record that daily record front end generates, therefore the restriction of language is not described in daily record rear end by daily record front end, daily record front end is not also by the restriction of daily record rear end simultaneously, thus make daily record front end more convenient when adding the daily record of New raxa, and daily record rear end does not affect daily record front end when expanding yet, therefore solve log system in prior art to realize usually used as an entirety when generating daily record and carry out daily record output, the problem poor to the extendability of daily record outbound course, reach can so that log system add newtype daily record, daily record rear end outbound course more flexible, and the effect that the outbound course of daily record rear end is more easily expanded.
Shown in Figure 4, the structural representation of the log management apparatus provided in another embodiment of the present invention is provided, this log management apparatus can by hardware, software or both combine and realize becoming all or part of of log system in electronic equipment, or can by hardware, software or both combine and realize becoming in electronic equipment all or part of of log system in any application, log system said here can comprise daily record front end and daily record rear end.This log management apparatus can comprise: daily record generation module 402, language conversion module 404 and journal output module 406.
This daily record generation module 402, may be used for utilizing the daily record front end of log system to generate daily record;
For the ease of the expansion of daily record kind in log system and the expansion of daily record outbound course, log system can be divided into user and generate the daily record front end of daily record and be used for the daily record rear end of output journal.Daily record front end and daily record rear end separate.
This language conversion module 404, may be used for converting the daily record that daily record generation module 402 generates to utilize intermediate language to describe daily record;
Intermediate language is generalized edit language, no matter which kind of language compilation the daily record that daily record front end generates like this utilizes, this intermediate language all can be utilized to be described, and the daily record that intermediate language describes all can be identified in any one daily record rear end, therefore for daily record rear end, the language of daily record front end does not affect the identification of daily record rear end yet.
This journal output module 406, may be used for utilizing daily record rear end corresponding with daily record front end in log system, the daily record that language conversion module 404 utilizes intermediate language to describe is outputted in the object corresponding with daily record rear end.
In one embodiment, this log management apparatus can also comprise: daily record rear end determination module 408.
This daily record rear end determination module 408, may be used for the corresponding relation according to the daily record front end prestored in log system and daily record rear end, determine the daily record rear end corresponding with the daily record front end generating daily record, the daily record front end in each group corresponding relation and daily record rear end correspond to the daily record of same type.
In one embodiment, this daily record generation module 402 can comprise: receiving element 402a and generation unit 402b.
This receiving element 402a, may be used for the daily record front end receiver log parameters utilizing log system, the Log Types corresponding to daily record front end is identical with the type of the daily record that log parameters will generate;
This generation unit 402b, may be used for generating daily record in daily record front end according to log parameters.
In one embodiment, this log management apparatus can also comprise: optimize module 410.
This optimization module 410, may be used for, according to the principle of optimality preset, utilizing the daily record described by intermediate language to be optimized to language conversion module 404.
In actual applications, the daily record generated can also be optimized middle layer unification between the daily record front end of log system and daily record rear end, also be, after daily record being converted to the daily record utilizing intermediate language to describe, according to the principle of optimality preset, the daily record described by intermediate language is optimized.Here the said principle of optimality preferentially can set according to actual conditions, such as can add constant mark for daily record or compress etc. the daily record that intermediate language describes.Optionally, can also to wherein part front end export and the daily record utilizing intermediate language to describe be optimized.
In one embodiment, the unique corresponding a kind of Log Types in each daily record front end in log system; The unique corresponding a kind of Log Types in each daily record rear end of log system, at least one function that the standard interface definition of each daily record rear end object corresponding with daily record rear end has.
In sum, the log management apparatus provided in the embodiment of the present invention, by log system being divided into daily record front end and daily record rear end, and convert the daily record that daily record front end generates to intermediate language, then utilize corresponding daily record rear end the daily record utilizing intermediate language to describe to be exported in corresponding object, because the daily record front end of log system and daily record rear end separate, no matter and which kind of language compilation daily record front end is, the daily record generated all can be converted into intermediate language, such daily record rear end total energy identifies the daily record that daily record front end generates, therefore the restriction of language is not described in daily record rear end by daily record front end, daily record front end is not also by the restriction of daily record rear end simultaneously, thus make daily record front end more convenient when adding the daily record of New raxa, and daily record rear end does not affect daily record front end when expanding yet, therefore solve log system in prior art to realize usually used as an entirety when generating daily record and carry out daily record output, the problem poor to the extendability of daily record outbound course, reach can so that log system add newtype daily record, daily record rear end outbound course more flexible, and the effect that the outbound course of daily record rear end is more easily expanded.
It should be noted that: the log management apparatus provided in above-described embodiment is when carrying out log management, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by electronic equipment is divided into different functional modules, to complete all or part of function described above.In addition, the log management apparatus that above-described embodiment provides and blog management method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Shown in Figure 5, the block diagram of the electronic equipment provided in section Example of the present invention is provided.The method for processing business that this electronic equipment 500 provides for implementing above-described embodiment.Electronic equipment 500 in the present invention can comprise one or more following ingredient: for performing computer program instructions to complete the processor of various flow process and method, for information and stored program instruction random access memory (RAM) and ROM (read-only memory) (ROM), for storing the storer of data and information, I/O equipment, interface, antenna etc.Specifically:
Electronic equipment 500 can comprise RF (RadioFrequency, radio frequency) parts such as circuit 510, storer 520, input block 530, display unit 540, sensor 550, voicefrequency circuit 560, Wi-Fi (Wireless-Fidelity, Wireless Fidelity) module 570, processor 580, power supply 582, camera 590.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the electronic devices structure shown in Fig. 5, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 5 each component parts to electronic equipment 500:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 580; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, RF circuit 510 can also by radio communication and network and other devices communicatings.Radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Storer 520 can be used for storing software program and module, and processor 580 is stored in software program and the module of storer 520 by running, thus performs various function application and the data processing of electronic equipment 500.Storer 520 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of electronic equipment 500.In addition, storer 520 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 530 can be used for the numeral or the character information that receive input, and generation arranges with the user of electronic equipment 500 and function controls the input of relevant key signals.Particularly, input block 530 can comprise contact panel 531 and other input equipments 532.Contact panel 531, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 531 or near contact panel 531 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 531 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 580, and the order that energy receiving processor 580 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 531.Except contact panel 531, input block 530 can also comprise other input equipments 532.Particularly, other input equipments 532 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 540 can be used for the various menus showing information or the information being supplied to user and the electronic equipment 500 inputted by user.Display unit 540 can comprise display panel 541, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 541.Further, contact panel 531 can cover display panel 541, when contact panel 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display panel 541, provide corresponding vision to export with preprocessor 580 according to the type of touch event.Although in Figure 5, contact panel 531 and display panel 541 be as two independently parts to realize input and the input function of electronic equipment 500, but in certain embodiments, can by integrated to contact panel 531 and display panel 541 and realize the input and output function of electronic equipment 500.
Electronic equipment 500 also can comprise at least one sensor 550, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 541, proximity transducer when electronic equipment 500 moves in one's ear, can cut out display panel 541 and/or backlight.As the one of motion sensor, acceleration transducer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of electronic equipment attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for electronic equipment 500 also other sensors such as configurable barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and electronic equipment 500.Voicefrequency circuit 560 can by receive voice data conversion after electric signal, be transferred to loudspeaker 561, by loudspeaker 561 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 562, voice data is converted to after being received by voicefrequency circuit 560, after again voice data output processor 580 being processed, through RF circuit 510 to send to such as another terminal, or export voice data to storer 520 to process further.
Wi-Fi belongs to short range wireless transmission technology, and electronic equipment 500 can help user to send and receive e-mail by Wi-Fi module 570, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 5 shows Wi-Fi module 570, be understandable that, it does not belong to must forming of electronic equipment 500, can omit in the scope not changing disclosed essence as required completely.
Processor 580 is control centers of electronic equipment 500, utilize the various piece of various interface and the whole electronic equipment of connection, software program in storer 520 and/or module is stored in by running or performing, and call the data be stored in storer 520, perform various function and the process data of electronic equipment 500, thus integral monitoring is carried out to electronic equipment.Optionally, processor 580 can comprise one or more processing unit; Preferably, processor 580 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 580.
Electronic equipment 500 also comprises the power supply 582 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 582 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 590 is generally made up of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, manually can change focusing by adjustable lens; Imageing sensor is equivalent to " film " of traditional camera, is the heart of camera collection image; Interface is used for camera to utilize winding displacement, board to board connector, spring connected mode to be connected with electronic equipment mainboard, and the image of collection is sent to storer 520; Digital signal processor is processed the image gathered by mathematical operation, the analog image of collection is converted to digital picture and sends to storer 520 by interface.
Although not shown, electronic equipment 500 can also comprise bluetooth module etc., does not repeat them here.
Electronic equipment 500, except comprising one or more processor 580, also includes storer, and one or more program, and one or more program is stored in storer, and is configured to be performed by one or more processor.One or more program above-mentioned has following function:
The daily record front end of log system is utilized to generate daily record;
Daily record is converted to the daily record utilizing intermediate language to describe;
Utilize daily record rear end corresponding with daily record front end in log system, the daily record described utilizing intermediate language outputs in the object corresponding with daily record rear end.
In one embodiment, one or more program above-mentioned also has following function: utilizing daily record rear end corresponding with daily record front end in log system, the daily record described utilizing intermediate language also comprises before outputting in the object corresponding with daily record rear end:
According to the corresponding relation of the daily record front end prestored in log system and daily record rear end, determine the daily record rear end corresponding with the daily record front end generating daily record, the daily record front end in each group corresponding relation and the daily record of daily record rear end corresponding to same type.
In one embodiment, one or more program above-mentioned also has following function: utilize the daily record front end of log system to generate daily record, comprising:
Utilize the daily record front end receiver log parameters of log system, the Log Types corresponding to daily record front end is identical with the type of the daily record that log parameters will generate;
Daily record is generated according to log parameters in daily record front end.
In one embodiment, one or more program above-mentioned also has following function: after daily record being converted to the daily record utilizing intermediate language to describe, also comprise:
According to the principle of optimality preset, the daily record described by intermediate language is optimized.
In one embodiment, one or more program above-mentioned also has following function: the unique corresponding a kind of Log Types in each daily record front end of log system;
The unique corresponding a kind of Log Types in each daily record rear end of log system, at least one function that the standard interface definition of each daily record rear end object corresponding with daily record rear end has.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. a blog management method, is characterized in that, be applied in the log system including daily record front end and daily record rear end, described method comprises:
The daily record front end of described log system is utilized to generate daily record;
Described daily record is converted to the daily record utilizing intermediate language to describe;
Utilize daily record rear end corresponding with described daily record front end in described log system, the described daily record utilizing intermediate language to describe is outputted in the object corresponding with described daily record rear end.
2. method according to claim 1, it is characterized in that, utilize daily record rear end corresponding with described daily record front end in described log system described, before the described daily record utilizing intermediate language to describe being outputted in the object corresponding with described daily record rear end, also comprise:
According to the corresponding relation of the daily record front end prestored in described log system and daily record rear end, determine the daily record rear end corresponding with the daily record front end generating described daily record, the daily record front end in each group corresponding relation and the daily record of daily record rear end corresponding to same type.
3. method according to claim 1, is characterized in that, the described daily record front end of log system that utilizes generates daily record, comprising:
Utilize the daily record front end receiver log parameters of described log system, the Log Types corresponding to described daily record front end is identical with the type of the daily record that described log parameters will generate;
Described daily record is generated according to described log parameters in described daily record front end.
4. method according to claim 1, is characterized in that, described described daily record converted to the daily record utilizing intermediate language to describe after, also comprise:
According to the principle of optimality preset, the daily record described by described intermediate language is optimized.
5., according to described method arbitrary in Claims 1-4, it is characterized in that,
The unique corresponding a kind of Log Types in each daily record front end of described log system;
The unique corresponding a kind of Log Types in each daily record rear end of described log system, at least one function that the standard interface definition of each daily record rear end described object corresponding with described daily record rear end has.
6. a log management apparatus, is characterized in that, be applied in the log system including daily record front end and daily record rear end, described device comprises:
Daily record generation module, generates daily record for utilizing the daily record front end of described log system;
Language conversion module, converts for the described daily record generated by described daily record generation module the daily record utilizing intermediate language to describe to;
Journal output module, for utilizing daily record rear end corresponding with described daily record front end in described log system, outputs to the daily record that described language conversion module utilizes described intermediate language to describe in the object corresponding with described daily record rear end.
7. device according to claim 6, is characterized in that, described device also comprises:
Daily record rear end determination module, for the corresponding relation according to the daily record front end prestored in described log system and daily record rear end, determine the daily record rear end corresponding with the daily record front end generating described daily record, the daily record front end in each group corresponding relation and daily record rear end correspond to the daily record of same type.
8. device according to claim 6, is characterized in that, described daily record generation module, comprising:
Receiving element, for utilizing the daily record front end receiver log parameters of described log system, the Log Types corresponding to described daily record front end is identical with the type of the daily record that described log parameters will generate;
Generation unit, for generating described daily record in described daily record front end according to described log parameters.
9. device according to claim 6, is characterized in that, described device also comprises:
Optimize module, for according to the principle of optimality preset, utilize the daily record described by described intermediate language to be optimized to described language conversion module.
10., according to described device arbitrary in claim 6 to 9, it is characterized in that,
The unique corresponding a kind of Log Types in each daily record front end of described log system;
The unique corresponding a kind of Log Types in each daily record rear end of described log system, at least one function that the standard interface definition of each daily record rear end described object corresponding with described daily record rear end has.
11. 1 kinds of electronic equipments, is characterized in that, are provided with the log system comprising daily record front end and daily record rear end in described electronic equipment, and described electronic equipment comprises:
Touch-screen display, one or more than one processor;
Storer;
And one or more than one program, wherein said more than one or one program is stored in described storer, and be configured to be performed by described more than one or one processor, described more than one or one routine package is containing the instruction for carrying out following operation:
The daily record front end of described log system is utilized to generate daily record;
Described daily record is converted to the daily record utilizing intermediate language to describe;
Utilize daily record rear end corresponding with described daily record front end in described log system, the described daily record utilizing intermediate language to describe is outputted in the object corresponding with described daily record rear end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410392273.5A CN105335434B (en) | 2014-08-11 | 2014-08-11 | Log management method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410392273.5A CN105335434B (en) | 2014-08-11 | 2014-08-11 | Log management method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105335434A true CN105335434A (en) | 2016-02-17 |
CN105335434B CN105335434B (en) | 2020-08-25 |
Family
ID=55285963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410392273.5A Active CN105335434B (en) | 2014-08-11 | 2014-08-11 | Log management method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105335434B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450689A (en) * | 2018-11-19 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of log Method of printing, device, storage medium and computer equipment |
CN110825713A (en) * | 2019-10-30 | 2020-02-21 | Oppo广东移动通信有限公司 | Information processing method and related product |
CN113051121A (en) * | 2019-12-26 | 2021-06-29 | 百度在线网络技术(北京)有限公司 | Log information retrieval method and device, electronic equipment and medium |
CN114237712A (en) * | 2021-12-15 | 2022-03-25 | 北京百度网讯科技有限公司 | Instruction execution method and device, electronic equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1670708A (en) * | 2004-03-17 | 2005-09-21 | 联想(北京)有限公司 | Management method for computer log |
US20070156786A1 (en) * | 2005-12-22 | 2007-07-05 | International Business Machines Corporation | Method and apparatus for managing event logs for processes in a digital data processing system |
CN101958837A (en) * | 2010-09-30 | 2011-01-26 | 北京世纪互联工程技术服务有限公司 | Log processing system, log processing method, node server and center server |
CN102065416A (en) * | 2009-11-18 | 2011-05-18 | 成都市华为赛门铁克科技有限公司 | Method, device and system for formatting logs |
CN103825918A (en) * | 2012-11-16 | 2014-05-28 | 腾讯科技(深圳)有限公司 | Data synchronization method, terminal equipment, server and data synchronization system |
-
2014
- 2014-08-11 CN CN201410392273.5A patent/CN105335434B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1670708A (en) * | 2004-03-17 | 2005-09-21 | 联想(北京)有限公司 | Management method for computer log |
US20070156786A1 (en) * | 2005-12-22 | 2007-07-05 | International Business Machines Corporation | Method and apparatus for managing event logs for processes in a digital data processing system |
CN102065416A (en) * | 2009-11-18 | 2011-05-18 | 成都市华为赛门铁克科技有限公司 | Method, device and system for formatting logs |
CN101958837A (en) * | 2010-09-30 | 2011-01-26 | 北京世纪互联工程技术服务有限公司 | Log processing system, log processing method, node server and center server |
CN103825918A (en) * | 2012-11-16 | 2014-05-28 | 腾讯科技(深圳)有限公司 | Data synchronization method, terminal equipment, server and data synchronization system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450689A (en) * | 2018-11-19 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of log Method of printing, device, storage medium and computer equipment |
CN109450689B (en) * | 2018-11-19 | 2022-02-22 | 郑州云海信息技术有限公司 | Log printing method and device, storage medium and computer equipment |
CN110825713A (en) * | 2019-10-30 | 2020-02-21 | Oppo广东移动通信有限公司 | Information processing method and related product |
CN110825713B (en) * | 2019-10-30 | 2022-05-27 | Oppo广东移动通信有限公司 | Information processing method and related product |
CN113051121A (en) * | 2019-12-26 | 2021-06-29 | 百度在线网络技术(北京)有限公司 | Log information retrieval method and device, electronic equipment and medium |
CN114237712A (en) * | 2021-12-15 | 2022-03-25 | 北京百度网讯科技有限公司 | Instruction execution method and device, electronic equipment and computer storage medium |
CN114237712B (en) * | 2021-12-15 | 2022-12-27 | 北京百度网讯科技有限公司 | Instruction execution method and device, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105335434B (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219617B (en) | Service acquisition method and device | |
CN103543913A (en) | Terminal device operation method and device, and terminal device | |
US9760998B2 (en) | Video processing method and apparatus | |
CN103488403A (en) | Switching method and device for interface layout and mobile terminal | |
CN111399819B (en) | Data generation method, device, electronic equipment and storage medium | |
CN103513769A (en) | Method, device and mobile terminal for setting key function | |
CN104683456A (en) | Service processing method, server and terminal | |
CN103313139A (en) | History display method and device and electronic device | |
CN104426962A (en) | Multi-terminal binding method, binding server, terminal and multi-terminal binding system | |
CN104239343A (en) | User input information processing method and device | |
CN105279186A (en) | Image processing method and system | |
CN104252341A (en) | Method and device for resurfacing application program and client side device of application program | |
CN103269374A (en) | Recording synchronization method, device and equipment | |
CN105094809A (en) | Combined picture layout modification method and device and terminal equipment | |
CN104869465A (en) | Video playing control method and device | |
CN104954159A (en) | Network information statistics method and device | |
CN103945241A (en) | Streaming data statistical method, system and related device | |
CN104093053A (en) | Video file playing method, devices and system | |
CN103699373A (en) | Interface color display method, device and system | |
CN104021129A (en) | Picture group display method and terminal | |
CN105373534A (en) | List display method, device and list display terminal | |
CN103607431B (en) | Mobile terminal resource processing method, device and equipment | |
CN103399911A (en) | Access processing method, device and terminal device on basis of browser client | |
CN104516890A (en) | Business processing method, business processing device and electronic equipment | |
CN105335434A (en) | Log management method and device, and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |