CN106156355A - Log processing method and device - Google Patents

Log processing method and device Download PDF

Info

Publication number
CN106156355A
CN106156355A CN201610600559.7A CN201610600559A CN106156355A CN 106156355 A CN106156355 A CN 106156355A CN 201610600559 A CN201610600559 A CN 201610600559A CN 106156355 A CN106156355 A CN 106156355A
Authority
CN
China
Prior art keywords
daily record
program
record data
level
conditioned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610600559.7A
Other languages
Chinese (zh)
Other versions
CN106156355B (en
Inventor
李德铠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610600559.7A priority Critical patent/CN106156355B/en
Publication of CN106156355A publication Critical patent/CN106156355A/en
Application granted granted Critical
Publication of CN106156355B publication Critical patent/CN106156355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/217Database tuning

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of log processing method and device;Method includes: the daily record data that the program of acquisition exports in running;Identify the different stage belonging to institute's output journal data;The state that detection program is run, determines that the state that described program is run is met pre-conditioned;The described daily record data of described first level based on described pre-conditioned correspondence, at least one the described daily record data of second level, form corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period;The mistake produced described program based on the described journal file of period at least one described detects.Implement the present invention, it is possible to the problem the most efficiently investigating program emerged in operation, and save the storage resource of daily record.

Description

Log processing method and device
Technical field
The present invention relates to the computer program technology of computer realm, particularly relate to log processing method and device.
Background technology
Program (or system) exploitation, test with and actual motion during, logging program run daily record extremely Closing important, daily record may be used for being monitored the running status of program and carrying out problem investigation when program mal.
Daily record store to the various information in program operation process, for the large-scale application that function is more complicated, note The operation of record program can produce the daily record that data volume is the biggest, and this causes needing suitable memory space to store daily record, and storage is extra large On the one hand the daily record of amount can take substantial amounts of storage resource, and for saving the demand of storage resource, may only can store recently The daily record of a period of time.This causes problems with occur:
1) owing to daily record not carried out full dose storage, therefore can only ask based on the running log of nearest a period of time Topic investigation, and the historical problem of more long time (do not store this period corresponding daily record) cannot be investigated;
2) only store the daily record of a period of time, cause the problem that the frequency of occurrences is relatively low is also difficult to investigate in time.
3) even if the daily record that only storage program nearest a period of time is run, substantial amounts of memory space can still be taken, meanwhile, The daily record of magnanimity is processed the efficiency that also have impact on investigation problem.
Summary of the invention
The embodiment of the present invention provides a kind of log processing method and device, it is possible to the most efficiently investigation program emerged in operation Problem, and save the storage resource of daily record.
The technical scheme of the embodiment of the present invention is achieved in that
First aspect, the embodiment of the present invention provides a kind of log processing method, and described method includes:
The daily record data that acquisition program exports in running;
Identify the different stage belonging to institute's output journal data;
The state that detection program is run, determines that the state that described program is run is met pre-conditioned;
The described daily record data of described first level based on described pre-conditioned correspondence, the described daily record number of second level At least one according to, form corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period;
The mistake produced described program based on the described journal file of period at least one described detects.
Alternatively, the daily record data that described acquisition program exports in running, including:
Call the daily record data of program output described in daily record device example record;
The described different stage identified belonging to institute's output journal data, including:
The rank keyword recognition carried based on described daily record data goes out the described daily record data of at least one following rank: Debugging level;Error level;Levels of information;Alarm level.
Alternatively, the state that described detection program is run, determine that the state that described program is run is met pre-conditioned, Including:
Detect when described program run duration exits the most extremely, determine that the running status of described program meets properly functioning That terminates is pre-conditioned;
Detect when described program run duration exception exits, determine that the running status of described program meets what exception exited Pre-conditioned.
Alternatively, it is pre-conditioned that the described state run based on described program is met, based on described pre-conditioned right The described daily record data of the described first level answered, at least one the described daily record data of second level, form corresponding described journey Sequence from bringing into operation to the journal file meeting described pre-conditioned period, including:
The described daily record data of described second level is write described journal file, when the running status of described program meets Extremely exit pre-conditioned time, the described daily record data of described first level is write described journal file, forms corresponding institute Program of stating is from bringing into operation to the journal file meeting described pre-conditioned period.
Alternatively, the described running status when described program meet abnormal exit pre-conditioned time, by the described first order Other described daily record data writes described journal file, forms corresponding described program described pre-conditioned to meeting from bringing into operation The journal file of period, including:
By the stacked storage of daily record data of the first level identified from the daily record data exported;
When the running status of described program meet abnormal exit pre-conditioned time, read stacked with the order that last in, first out The daily record data of described first level of storage also writes described journal file, forms corresponding described program from bringing into operation to full The journal file of foot described pre-conditioned period;
Empty the daily record data of the described first level of stacked storage.
Alternatively, it is pre-conditioned that the described state run based on described program is met, based on described pre-conditioned right The described daily record data of the described first level answered, at least one the described daily record data of second level, form corresponding described journey Sequence from bringing into operation to the journal file meeting described pre-conditioned period, including:
The described daily record data of described second level is write described journal file, when the running status of described program meets During properly functioning end pre-conditioned, described daily record data based on the described second level writing described journal file, shape Become corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period.
Alternatively, described when the running status of described program meets properly functioning end pre-conditioned, based on write The described daily record data of the described second level of described journal file, including:
By the stacked storage of daily record data of the first level identified from the daily record data exported;
When the running status of described program meets properly functioning end pre-conditioned, empty described the of stacked storage The other daily record data of one-level;
Described daily record data based on the second level writing described journal file, forms corresponding described program from starting fortune Walk to meet the journal file of described pre-conditioned period.
Alternatively, described first level is debugging level, at least one following rank of described second level: error level; Levels of information;Alarm level.
Second aspect, the embodiment of the present invention provides a kind of log processing device, and described device includes:
Acquiring unit, for obtaining the daily record data that program exports in running;
Recognition unit, for identifying the different stage belonging to institute's output journal data;
First detector unit, for detecting the state that program is run, determines that the state that described program is run is met pre- If condition;
Log unit, for the described daily record data of described first level based on described pre-conditioned correspondence, the second level At least one other described daily record data, forms corresponding described program from bringing into operation to meeting described pre-conditioned period Journal file;
Second detector unit, for the mistake produced described program based on the described journal file of period at least one described Detect by mistake.
Alternatively, described acquiring unit, it is additionally operable to call the daily record data of program output described in daily record device example record;
Described recognition unit, is additionally operable to the rank keyword recognition based on described daily record data carries and goes out following rank at least One of described daily record data: debugging level;Error level;Levels of information;Alarm level.
Alternatively, described first detector unit, it is additionally operable to detect when described program run duration exits the most extremely, determines The running status of described program meets the pre-conditioned of properly functioning end;Detect that described program run duration is abnormal to exit Time, determine the running status of described program meet abnormal exit pre-conditioned.
Alternatively, described log unit, it is additionally operable to write the described daily record data of described second level described daily record literary composition Part, when the running status of described program meet abnormal exit pre-conditioned time, by the described daily record data of described first level Write described journal file, form corresponding described program from bringing into operation to the daily record literary composition meeting described pre-conditioned period Part.
Alternatively, described log unit, it is additionally operable to the day of the first level identified from the daily record data exported The stacked storage of will data;When the running status of described program meet abnormal exit pre-conditioned time, with the order that last in, first out Read the daily record data of the described first level of stacked storage and write described journal file, formed corresponding described program from from the beginning of Run to the journal file meeting described pre-conditioned period;Empty the daily record data of the described first level of stacked storage.
Alternatively, described log unit, it is additionally operable to write the described daily record data of described second level described daily record literary composition Part, when the running status of described program meets properly functioning end pre-conditioned, based on the institute writing described journal file State the described daily record data of second level, form corresponding described program from bringing into operation to meeting described pre-conditioned period Journal file.
Alternatively, described log unit, it is additionally operable to the day of the first level identified from the daily record data exported The stacked storage of will data;When the running status of described program meets properly functioning end pre-conditioned, empty stacked storage The daily record data of described first level;Described daily record data based on the second level writing described journal file, it is right to be formed Answer described program from bringing into operation to the journal file meeting described pre-conditioned period.
The third aspect, the embodiment of the present invention provides a kind of log processing device, and described device includes: processor and storage are situated between Matter;In described storage medium, storage has the instruction performed for described processor, and described executable instruction is used for causing described process The operation that device execution is following:
The daily record data that acquisition program exports in running;
Identify the different stage belonging to institute's output journal data;
The state that detection program is run, determines that the state that described program is run is met pre-conditioned;
The described daily record data of described first level based on described pre-conditioned correspondence, the described daily record number of second level At least one according to, form corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period;
The mistake produced described program based on the described journal file of period at least one described detects.
Fourth aspect, the embodiment of the present invention provides a kind of storage medium, and in described storage medium, storage has executable instruction, Described executable instruction is for performing the log processing method that the embodiment of the present invention provides.
The embodiment of the present invention has the advantages that
1) daily record data selectively utilizing more than one ranks forms journal file, and relatively utilize that program exports is complete Portion's daily record data forms journal file and substantially saves storage resource.Even if can also deposit in the case of storage resource is extremely limited The journal file of storage program longtime running.Thus, it is possible to based on program longtime running (such as, from program cloud platform reach the standard grade with Come period, or the period of the whole test of program) journal file, relatively low to occurrence frequency in program operation process Mistake is investigated, and investigates it is of course also possible to the program relatively early time is run the historical problem occurred.
2) state run according to program dynamically selects the daily record data of more than one ranks to form journal file, not only saves Save memory space, and the daily record data that rank based on pre-conditioned correspondence selects appropriate level forms journal file, relatively base Fix the daily record data formation journal file exporting a certain or several rank in program, more disclosure satisfy that and program is investigated mistake Demand.
Accompanying drawing explanation
Fig. 1 carries out the schematic diagram of roller process for the daily record to program provided in the embodiment of the present invention;
Fig. 2 is an optional hardware architecture diagram of log processing device in the embodiment of the present invention;
Fig. 3 is an optional application scenarios schematic diagram of log processing device in the embodiment of the present invention;
Fig. 4 is an optional schematic flow sheet of log processing method in the embodiment of the present invention;
Fig. 5 is the optional schematic flow sheet forming journal file in the embodiment of the present invention;
Fig. 6 is an optional logical functional structure schematic diagram of log processing device in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that mentioned herein Embodiment only in order to explain the present invention, is not intended to limit the present invention.It addition, embodiment provided below is for implementing The section Example of the present invention, rather than the whole embodiments implementing the present invention are provided, do not pay creation those skilled in the art Property work on the premise of, the embodiment of the gained that carries out the technical scheme of following example recombinating and based on real to invention institute Other embodiments executed belong to protection scope of the present invention.
It should be noted that in embodiments of the present invention, term " includes ", " comprising " or its any other variant are intended to Contain comprising of nonexcludability, so that include that the method for a series of key element or device not only include that be expressly recited wants Element, but also include other key elements being not expressly set out, or also include want intrinsic for implementation or device Element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this key element Method or device in there is also other relevant factor (step in such as method or the unit in device).
The noun related in the embodiment of the present invention and term are applicable to following explanation.
Function: in all kinds of programming languages, function is a kind of process, also referred to as subprogram, and it performs the fortune specified Calculate or operation.Function has intrinsic function or claims canonical function, external function namely user-defined function etc..Can be by program or main letter Number calls.Such as, in C language, the form of function is divided without ginseng and has ginseng two classes.Do not take back without ginseng function or take back functional value. Ginseng function is had to have transmission data (variable) between calling and be called.
Stack: (stack), having another name called storehouse is a kind of data structure, and last in, first out, i.e. finally enters the data bullet at first of stack Go out.Being the limited linear list of a kind of computing, its restriction is that the one end being only allowed in table carries out inserting and deleting computing.This one end quilt It is referred to as stack top, relatively, the other end is called at the bottom of stack.To stack insert new element also referred to as push on, stacked or pop down, newly Element is put into above stack top element, makes new stack top element;Also referred to as pop from a stack deletion element or pop off, It is that stack top element is deleted so that it is adjacent element becomes new stack top element.
Daily record: the result in each stage that logging program performs.
Variable: variable refers to the amount that can change at any time in the running of program, corresponding with constant.
In an embodiment of the invention, it is provided that the running log to program as shown in Figure 1 carries out roller process Scheme, sees Fig. 1, and each form represents the program daily record a periodic duty, in log database, only records nearest one The section time such as N, (value of N is according to practical situation such as available memory space, the length etc. of the time needing monitoring) was in the individual cycle The daily record that program is run: along with the passage of program runtime, at daily record (the solid line form mark that log database write is up-to-date Know), and delete outmoded daily record (dotted line form mark), so that the data volume of the daily record of storage will not in log database Ever-increasing situation occurs in time.
If the log processing scheme shown in Fig. 1 of employing, the most at least there is problems in that
1) after the daily record in log database is deleted, then cannot be to program at the operation produced problem of corresponding period Investigate.
2) for the problem that the frequency of occurrences is relatively low, it is based only on the daily record in nearest N number of cycle and cannot be carried out investigating comprehensively, lead Problem present in program cannot be investigated by cause in time.
Need from the daily record of the longer time span operation monitoring to program or the investigation of problem in the case of a lot, In log database, the time span of the daily record of storage is limited, which increases the difficulty to program operation problem investigation, causes The problem that in program operation process, some occurrence frequencies are low cannot be investigated discovery in time, if produced in the running of program Raw daily record carries out full dose storage, then can cause taking substantial amounts of storage resource, be difficult to carry out equally.
3) program large-scale, complicated for some, the most only stores the daily record in N number of cycle in log database, Also can take substantial amounts of memory space in log database, the data of the daily record of magnanimity cause utilizing daily record to run program Problem carries out the efficiency investigated.
For the problems referred to above, the embodiment of the present invention provides log processing method, device and storage medium, by transporting program During row, the daily record of output carries out classification other places reason, when the running status of program meets pre-conditioned, according to default The daily record data of condition corresponding level forms journal file, by the rank of the pre-conditioned correspondence program to being in particular state The rank of daily record data required when carrying out mistake investigation dynamically controls, and so there is no need to utilize all rank always Daily record data forms journal file, even if the daily record data of program longtime running is formed journal file, it is also possible to reach joint Save the effect of storage resource, simultaneously, it is also possible to guarantee that the journal file formed includes enough mistakes that carries out program and arranges The daily record data looked into.
The embodiment of the present invention can provide log processing method and the log processing device of application log processing method, day Will processing means can use the calculating resource in server or server cluster to realize, and Fig. 2 shows log processing device 10 An optional hardware architecture diagram, including processor 11, input/output interface 12 (such as display, keyboard, touch Screen, one or more in Speaker Microphone), storage medium 13 and network interface 14, network interface is for supporting with outer The data transmission of portion's equipment, assembly can connect communication through system bus 15.
The hardware configuration that it is pointed out that the log processing device 10 shown in Fig. 2 is the most all required, can basis Practical situation omits the hardware configuration of implementation section, or, the hardware configuration of extension.It addition, the hardware knot shown in Fig. 2 Structure is at Same Physical position concentrated setting, or distribution is arranged on different physical locations, and set-up mode selects the most flexibly Select.
One optional application scenarios schematic diagram of log processing device as it is shown on figure 3, in figure 3, log processing device Being embodied as the server 10 for implementing log processing method, server 10 is by putting down program and the cloud of the 30 of cloud platform The daily record that the program of platform 40 exports during running carries out classification other places reason, and the running status in program meets pre-conditioned Time, form journal file according to the daily record data with pre-conditioned corresponding level and be stored in log database 20.At needs Time based on the journal file in log database 20, program is investigated in the mistake that a certain period occurs, below in conjunction with specifically Schematic flow sheet illustrate.
See an optional schematic flow sheet of the log processing method shown in Fig. 4, comprise the following steps:
Step 101, the daily record data that the program of acquisition exports in running.
As a example by Fig. 3, server 10 calls in daily record device (Logger) example record cloud platform 30 and cloud platform 40 The daily record data of program output, daily record device is the core component of log processing.There are 5 kinds of normal level (Level), including:
1) debugging level (static Level DEBUG)
DEBUG Level points out fine granularity message event, and debugging routine is had effect.
2) levels of information (static Level INFO)
INFO level shows that message highlights the running of program on coarse grain level.
3) alarm level (static Level WARN)
WARN level shows there will be the situation of latent fault.
4) error level (static Level ERROR)
Although ERROR level points out the event of making a mistake, but still does not affect continuing to run with of program.
5) severity level (static Level FATAL)
FATAL level points out that each grave error event will cause exiting of program.
It addition, also two available special daily record ranks:
static Level ALL
ALL Level is the lowest class, is used for opening all daily records.
static Level OFF
OFF Level is highest ranking, is used for closing all daily records.
The behavior of daily record device (Logger) is graduate.By the opening of the daily record data of appropriate level in control program Close, the rank of the daily record data of program output can be controlled, in the embodiment of the present invention, control program and export the daily record of all ranks Data, and it is selectively forming the journal file of log data.
Step 102, identifies the different stage belonging to institute's output journal data.
As a example by Fig. 3, the rank keyword that server carries based on the program output journal data in cloud platform 30, identify Going out the daily record data of above-mentioned rank, similarly, the daily record data that server 10 exports based on the program in cloud platform 40 carries Keyword recognition goes out the rank of corresponding daily record data.
Step 103, the state that detection program is run, determine that the state that program is run is met pre-conditioned.
Exemplarily, pre-conditioned exit for program exception, normal program operation terminates.
In one embodiment, pre-conditioned exiting for program exception, correspondingly, the state run when the program that detects is When extremely exiting, then decision procedure now meet abnormal exit pre-conditioned.
In another embodiment, pre-conditioned terminate for normal program operation, correspondingly, when in the running of program When not exporting the daily record data of FATAL rank, then can be determined that program meets the pre-conditioned of journey end of run.
Step 104, it is pre-conditioned that state based on program operation is met, first level based on pre-conditioned correspondence Daily record data, at least one the daily record data of second level, form corresponding program pre-conditioned to meeting from bringing into operation The journal file of period.
Step 105, the example in conjunction with the different corresponding journal files of pre-conditioned formation illustrates.
Example 1) pre-conditioned exit for program exception
As a example by Fig. 3, when abnormal situation about exiting occurs in the program in cloud platform 30, based on the debugging level (first order Daily record data not) and the daily record data of severity level (second level), form corresponding program pre-to meeting from bringing into operation If the journal file of the period of condition, here, severity level is any one rank removing debugging level in aforesaid rank, as Error level, levels of information, alarm level etc..
In one embodiment, when program brings into operation, once get the daily record number of the severity level of program output According to, then the daily record data of severity level is write journal file.Further, exit (also with regard to the running status of program when program exception Satisfied exception exit pre-conditioned time), the daily record data of debugging level is also write journal file, thus based on debugging level Daily record data and the daily record data of severity level, be collectively forming corresponding program from bringing into operation to meeting the pre-conditioned phase Between journal file.
Exemplarily, in order to be lifted at when program exception exits, the daily record data of debugging level is write corresponding journal file Efficiency, before program exits the most extremely or program off-duty terminates, by program export debugging level daily record data with The mode of stack stores, and the daily record data stored the most afterwards is first read (last in, first out), writes importance level in journal file simultaneously Other daily record data, when program exception exits, then reads the debugging level of stacked storage with the mode that last in, first out from stack Daily record data, in conjunction with the daily record data of the debugging level having been written into daily record, form corresponding program from bringing into operation to meeting The journal file of pre-conditioned period.
Mode based on stack can be lifted at need to journal file write debugging level daily record data efficiency, meanwhile, Owing to the daily record data of severity level is synchronously written journal file, this guarantees the efficiency that journal file generates, especially It is when the data volume of daily record data for output is the biggest, it is possible to significantly reduce the delay generating journal file.
The data volume of the daily record data produced in view of program is very big, read from stack debugging level daily record data it After, the daily record data of the first level of stacked storage can be emptied, thus save storage resource.
Example 2) pre-conditioned terminate for normal program operation
As a example by Fig. 3, when abnormal situation about exiting occurs in the program in cloud platform 40, based on the severity level (second level Daily record data not), the corresponding program of formation is from bringing into operation to the journal file meeting pre-conditioned period, here, important Rank is except any one rank of debugging level in aforesaid rank, such as error level, levels of information, alarm level etc..
In one embodiment, when program brings into operation, once get the daily record number of the severity level of program output According to, then the daily record data of severity level is write journal file, until program end of run, when program does not occur abnormal exiting , there are not the abnormal feelings exited due to program in (when also the running status with regard to program meets properly functioning end pre-conditioned) Condition, the daily record data being therefore not needed upon debugging level forms journal file, can be based only upon the daily record data of severity level The corresponding program of formation is from bringing into operation to the journal file meeting pre-conditioned period, due to not by the daily record of debugging level Data write journal file, therefore significantly reduces the data volume of journal file.
Exemplarily, before program exits the most extremely or program off-duty terminates, the debugging level that program is exported Daily record data stores in the way of stack, and the daily record data stored the most afterwards is first read (last in, first out), simultaneously in journal file The daily record data of write severity level, meanwhile, the daily record hands of severity level program exported is synchronously written journal file, so At the end of normal program operation, owing to need not to utilize the daily record data of debugging level to form journal file, then can empty into The daily record data of the first level of stack storage, thus save storage resource, and utilize the severity level having been written into journal file Daily record data, form corresponding program from bringing into operation to the journal file meeting pre-conditioned period, say, that in journey At the end of sort run journey, corresponding journal file has synchronized to generate, it is not necessary to carries out extra process again, improves daily record The formation efficiency of file, for producing the program of a large amount of daily record datas, it is possible to be obviously improved treatment effeciency.
Step 105, the mistake produced program based on the journal file during at least one detects.
Exemplarily, the daily record data utilizing program to exit period at operation exception carries out mistake investigation, based on aforementioned step Suddenly obtain having program stored therein in corresponding journal file the daily record data of debugging level of run duration, therefore can go out program The reason of existing mistake is accurately investigated.
Exemplarily, program daily record data during properly functioning end is utilized to carry out mistake investigation, based on aforementioned step Suddenly obtain having program stored therein in corresponding journal file the daily record data of severity level of run duration, therefore can go out program Existing such as alarm level, the investigation of error level.
Illustrate in conjunction with an example forming journal file, see that forms journal file shown in Fig. 5 Optional schematic flow sheet, obtains the daily record data of program output after operation program, enters the rank of the daily record data of output Row judges, if the daily record data of debugging level (such as variable, function name, function result etc.) is then by the daily record data of debugging level Stacked storage, if the daily record data of severity level is then carried out record by the daily record data of severity level, namely writes daily record File.
Meanwhile, whether the operation of detection program there is exception, if occurring abnormal, then needs the debugging level of stacked storage Daily record data write journal file, the program that formed is at the journal file of this run duration.
If the operation being not detected by program occurs abnormal, then continue the daily record data of acquisition program output, it may be judged whether adjust Try the daily record data of rank and process accordingly, until meeting one below:
1) detect that normal program operation terminates, utilize the daily record data shape of the severity level that recorded journal file The journal file that one-tenth program is this time run.
2) detect that program exception exits, write journal file that the daily record data of the debugging level of stacked storage is popped, Daily record data together with the severity level having been written in journal file forms the journal file that program is this time run.
Inventor finds in the practice of the invention, the actual application Program general relatively program of abnormal situation about exiting The number of times of properly functioning end to lack, and therefore, only utilizes the day of debugging level and severity level at the end of program operation exception Will data form journal file will save significantly on storage resource, even if thus can also in the case of storage resource is extremely limited The journal file of storage program longtime running.And then, it is possible to (such as, reach the standard grade in cloud platform from program based on program longtime running Since period, or the period of the whole test of program) journal file, relatively low to occurrence frequency in program operation process Mistake investigate, investigate it is of course also possible to the program relatively early time is run the historical problem occurred.
The functional structure of aforementioned log processing device is illustrated, sees of the log processing device shown in Fig. 6 Optional logical functional structure schematic diagram, it should be pointed out that the logical functional structure of the log processing device shown in Fig. 6 is only Being only exemplary, based on the logical functional structure shown in Fig. 6, those skilled in the art can carry out part to unit therein Merging or carry out further splitting and reorganizing.
It addition, each unit in the logical functional structure shown in Fig. 6 can be realized by the hardware configuration shown in Fig. 1.
In figure 6, log processing device 50 includes: acquiring unit 51, recognition unit the 52, first detector unit 53, daily record Unit 54 and the second detector unit 55, illustrate each unit below.
Acquiring unit 51, for obtaining the daily record data that program exports in running, such as, calls daily record device example The daily record data of logging program output.
As a example by Fig. 3, server 10 calls in daily record device (Logger) example record cloud platform 30 and cloud platform 40 The daily record data of program output, daily record device is the core component of log processing.There are 5 kinds of normal level (Level), including:
1) debugging level (static Level DEBUG)
2) levels of information (static Level INFO)
INFO level shows that message highlights the running of program on coarse grain level.
3) alarm level (static Level WARN)
4) error level (static Level ERROR)
5) severity level (static Level FATAL)
By the switch of the daily record data of appropriate level in control program, the level of the daily record data of program output can be controlled Not, in the embodiment of the present invention, control program and export the daily record data of all ranks, and be selectively forming log data Journal file.
Recognition unit 52, for identifying the different stage belonging to institute's output journal data, such as, takes based on daily record data The rank keyword recognition of band goes out the daily record data of at least one following rank: debugging level;Error level;Levels of information;Accuse Alert rank.
As a example by Fig. 3, the rank keyword that recognition unit 52 carries based on the program output journal data in cloud platform 10, Identify the daily record data of above-mentioned rank, similarly, the daily record data that recognition unit 52 exports based on the program in cloud platform 30 The keyword recognition carried goes out the rank of corresponding daily record data.
First detector unit 53, for detecting the state that program is run, determines that the state that program is run is met default Condition.
Exemplarily, pre-conditioned exit for program exception, normal program operation terminates.
In one embodiment, pre-conditioned exit for program exception, correspondingly, when the first detector unit 53 detects journey When the state of sort run is for abnormal exiting, then decision procedure now meet abnormal exit pre-conditioned.
In another embodiment, pre-conditioned terminate for normal program operation, correspondingly, when the first detector unit 53 is examined When measuring the daily record data not exporting FATAL rank in the running of program, then the program that can be determined that meets journey and runs knot That restraints is pre-conditioned.
Log unit 54, for the daily record data of first level based on pre-conditioned correspondence, the daily record number of second level At least one according to, form corresponding program from bringing into operation to the journal file meeting pre-conditioned period.
Second detector unit 55, examines for the mistake produced program based on the journal file during at least one Survey.
In one embodiment, whether the first detector unit 53 is adopted to detect in such a way and pre-conditioned is met: Yu Jian When the program run duration of measuring exits the most extremely, determine that the running status of program meets the pre-conditioned of properly functioning end;Inspection Measure when program run duration is abnormal to be exited, determine the running status of program and meet abnormal exit pre-conditioned.
Illustrate in conjunction with the different pre-conditioned examples to the formation of journal file.
Example 1) pre-conditioned exit for program exception
In one embodiment, log unit 54, for the daily record data of second level is write journal file, work as program Running status meet abnormal exit pre-conditioned time, the daily record data of first level is write journal file, forms correspondence Program is from bringing into operation to the journal file meeting pre-conditioned period.
Exemplarily, log unit 54 stores the daily record data of first level in the way of stack: by from the daily record exported The stacked storage of daily record data of the first level identified in data;When the running status of program meets the abnormal default bar exited During part, read the daily record data of the first level of stacked storage with the order that last in, first out and write journal file, forming correspondence Program is from bringing into operation to the journal file meeting pre-conditioned period;Empty the daily record number of the first level of stacked storage According to.
Mode based on stack can be lifted at need to journal file write debugging level daily record data efficiency, meanwhile, Owing to the daily record data of severity level is synchronously written journal file, this guarantees the efficiency that journal file generates, especially It is when the data volume of daily record data for output is the biggest, it is possible to significantly reduce the delay generating journal file.
It addition, in view of the data volume of the daily record data of program generation is very big, reading the daily record number of debugging level from stack According to afterwards, the daily record data of the first level of stacked storage can be emptied, thus save storage resource.
Example 2) pre-conditioned terminate for normal program operation
In one embodiment, log unit 54, it is additionally operable to the daily record data of second level is write journal file, works as journey When the running status of sequence meets properly functioning end pre-conditioned, the daily record number of second level based on write journal file According to, form corresponding program from bringing into operation to the journal file meeting pre-conditioned period.
In one embodiment, when program brings into operation, once log unit 54 gets the importance level of program output Other daily record data, then write journal file by the daily record data of severity level, until program end of run, when program is not sent out Raw abnormal exit (when also the running status with regard to program meets properly functioning end pre-conditioned), do not occur due to program different Situation about often exiting, the daily record data being therefore not needed upon debugging level forms journal file, can be based only upon severity level Daily record data form corresponding program from bringing into operation to the journal file meeting pre-conditioned period, due to will not debugging The daily record data write journal file of rank, therefore significantly reduces the data volume of journal file.
Exemplarily, log unit 54 stores the daily record data of first level in the way of stack, the most extremely exits in program Or before program off-duty terminates, the daily record data of the debugging level that program exports is stored in the way of stack by log unit 54, The daily record data the most first stored first is read (last in, first out), writes the daily record data of severity level in journal file simultaneously, Meanwhile, the daily record hands of severity level program exported is synchronously written journal file, so at the end of normal program operation, by Form journal file in the daily record data that need not utilize debugging level, then can empty the daily record number of the first level of stacked storage According to, thus save storage resource, and utilize the daily record data of the severity level having been written into journal file, formed corresponding program from Bring into operation to the journal file meeting pre-conditioned period, say, that at the end of program runs journey, corresponding day Will file has synchronized to generate, it is not necessary to carries out extra process again, improves the formation efficiency of journal file, big for producing For the program of amount daily record data, it is possible to be obviously improved treatment effeciency.
Second detector unit 55, examines for the mistake produced program based on the journal file during at least one Survey.
Exemplarily, the daily record data utilizing program to exit period at operation exception carries out mistake investigation, based on aforementioned step Suddenly obtain having program stored therein in corresponding journal file the daily record data of debugging level of run duration, therefore can go out program The reason of existing mistake is accurately investigated.
Exemplarily, program daily record data during properly functioning end is utilized to carry out mistake investigation, based on aforementioned step Suddenly obtain having program stored therein in corresponding journal file the daily record data of severity level of run duration, therefore can go out program Existing such as alarm level, the investigation of error level.
The embodiment of the present invention at least achieves following beneficial effect:
1) daily record data selectively utilizing more than one ranks forms journal file, and relatively utilize that program exports is complete Portion's daily record data forms journal file and substantially saves storage resource.Even if can also deposit in the case of storage resource is extremely limited The journal file of storage program longtime running.Thus, it is possible to based on program longtime running (such as, from program cloud platform reach the standard grade with Come period, or the period of the whole test of program) journal file, relatively low to occurrence frequency in program operation process Mistake is investigated, and investigates it is of course also possible to the program relatively early time is run the historical problem occurred.
2) state run according to program dynamically selects the daily record data of more than one ranks to form journal file, not only saves Save memory space, and the daily record data that rank based on pre-conditioned correspondence selects appropriate level forms journal file, relatively makes Program fixes the daily record data formation journal file exporting a certain or several rank, more disclosure satisfy that program investigation mistake Demand.
If module integrated described in the embodiment of the present invention realizes and as independent product using the form of software function module When product are sold or use, it is also possible to be stored in a computer read/write memory medium.Based on such understanding, in this area Skilled artisan will appreciate that, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention The form of the embodiment in terms of can using complete hardware embodiment, complete software implementation or combining software and hardware.And, The present invention can use in one or more computer-usable storage medium wherein including computer usable program code real The form of the computer program executed, described storage medium include but not limited to USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk memory, CD-ROM, Optical memory etc..
The present invention be method according to embodiments of the present invention, equipment (system) and the flow chart of computer program and/ Or block diagram describes.It should be understood that can by each flow process in computer program instructions flowchart and/or block diagram and/ Or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided To the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce one Individual machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Although having been described for embodiments of the invention, but those skilled in the art once know basic creative general Read, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include embodiment And fall into all changes and the amendment of the scope of the invention.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.

Claims (15)

1. a log processing method, it is characterised in that described method includes:
The daily record data that acquisition program exports in running;
Identify the different stage belonging to institute's output journal data;
Detect the state that described program is run, determine that the state that described program is run is met pre-conditioned;
The described daily record data of described first level based on described pre-conditioned correspondence, second level described daily record data extremely One of few, form corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period;
The mistake produced described program based on the described journal file of period at least one described detects.
Method the most according to claim 1, it is characterised in that
The daily record data that described acquisition program exports in running, including:
Call the daily record data of program output described in daily record device example record;
The described different stage identified belonging to institute's output journal data, including:
The rank keyword recognition carried based on described daily record data goes out the described daily record data of at least one following rank: debugging Rank;Error level;Levels of information;Alarm level.
Method the most according to claim 1, it is characterised in that the state that described detection program is run, determines described program It is pre-conditioned that the state run is met, including:
Detect when described program run duration exits the most extremely, determine that the running status of described program meets properly functioning end Pre-conditioned;
When detecting that described program run duration is abnormal and exit, determine the running status of described program meet abnormal exit preset Condition.
Method the most according to claim 1, it is characterised in that it is pre-that the described state run based on described program is met If condition, the described daily record data of described first level based on described pre-conditioned correspondence, the described daily record number of second level At least one according to, form corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period, including:
The described daily record data of described second level is write described journal file, when the running status of described program meets abnormal Exit pre-conditioned time, the described daily record data of described first level is write described journal file, forms corresponding described journey Sequence is from bringing into operation to the journal file meeting described pre-conditioned period.
Method the most according to claim 4, it is characterised in that the described running status when described program meets abnormal exiting Pre-conditioned time, the described daily record data of described first level is write described journal file, formed corresponding described program from Bring into operation to the journal file meeting described pre-conditioned period, including:
By the stacked storage of daily record data of the first level identified from the daily record data exported;
When the running status of described program meet abnormal exit pre-conditioned time, read stacked storage with the order that last in, first out The daily record data of described first level and write described journal file, form corresponding described program from bringing into operation to meeting State the journal file of pre-conditioned period;
Empty the daily record data of the described first level of stacked storage.
Method the most according to claim 1, it is characterised in that
It is pre-conditioned that the described state run based on described program is met, and based on described pre-conditioned correspondence described first The described daily record data of rank, at least one the described daily record data of second level, form corresponding described program from bringing into operation To meeting the journal file of described pre-conditioned period, including:
The described daily record data of described second level is write described journal file, when the running status of described program meets normal During end of run pre-conditioned, described daily record data based on the described second level writing described journal file, it is right to be formed Answer described program from bringing into operation to the journal file meeting described pre-conditioned period.
Method the most according to claim 6, it is characterised in that described meet properly functioning when the running status of described program Terminate pre-conditioned time, based on writing the described daily record data of described second level of described journal file, including:
By the stacked storage of daily record data of the first level identified from the daily record data exported;
When the running status of described program meets properly functioning end pre-conditioned, empty the described first order of stacked storage Other daily record data;
Based on writing the described daily record data of second level of described journal file, formed corresponding described program from bring into operation to Meet the journal file of described pre-conditioned period.
Method the most according to claim 1, it is characterised in that
Described first level is debugging level, at least one following rank of described second level: error level;Levels of information;Accuse Alert rank.
9. a log processing device, it is characterised in that described device includes:
Acquiring unit, for obtaining the daily record data that program exports in running;
Recognition unit, for identifying the different stage belonging to described output journal data;
First detector unit, for detecting the state that program is run, determines the default bar that the state that described program is run is met Part;
Log unit, for the described daily record data of described first level based on described pre-conditioned correspondence, second level At least one described daily record data, forms corresponding described program from bringing into operation to the daily record meeting described pre-conditioned period File;
Second detector unit, enters for the mistake produced described program based on the described journal file of period at least one described Row detection.
Device the most according to claim 9, it is characterised in that
Described acquiring unit, is additionally operable to call the daily record data of program output described in daily record device example record;
Described recognition unit, is additionally operable to the rank keyword recognition based on described daily record data carries and goes out at least one following rank Described daily record data: debugging level;Error level;Levels of information;Alarm level.
11. devices according to claim 9, it is characterised in that
Described first detector unit, is additionally operable to detect when described program run duration exits the most extremely, determines described program Running status meets the pre-conditioned of properly functioning end;When detecting that described program run duration is abnormal and exit, determine described It is pre-conditioned that the satisfied exception of the running status of program exits.
12. devices according to claim 9, it is characterised in that
Described log unit, is additionally operable to the described daily record data of described second level is write described journal file, when described journey The running status of sequence meet abnormal exit pre-conditioned time, the described daily record data of described first level is write described daily record File, forms corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period.
13. devices according to claim 12, it is characterised in that
Described log unit, is additionally operable to deposit stacked for the daily record data of the first level identified from the daily record data exported Storage;When the running status of described program meet abnormal exit pre-conditioned time, read stacked storage with the order that last in, first out The daily record data of described first level and write described journal file, form corresponding described program from bringing into operation to meeting State the journal file of pre-conditioned period;Empty the daily record data of the described first level of stacked storage.
14. devices according to claim 9, it is characterised in that
Described log unit, is additionally operable to the described daily record data of described second level is write described journal file, when described journey When the running status of sequence meets properly functioning end pre-conditioned, based on the described second level writing described journal file Described daily record data, forms corresponding described program from bringing into operation to the journal file meeting described pre-conditioned period.
15. devices according to claim 14, it is characterised in that
Described log unit, is additionally operable to deposit stacked for the daily record data of the first level identified from the daily record data exported Storage;When the running status of described program meets properly functioning end pre-conditioned, empty the described first order of stacked storage Other daily record data;Based on writing the described daily record data of second level of described journal file, formed corresponding described program from Bring into operation to the journal file meeting described pre-conditioned period.
CN201610600559.7A 2016-07-27 2016-07-27 Log processing method and device Active CN106156355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610600559.7A CN106156355B (en) 2016-07-27 2016-07-27 Log processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610600559.7A CN106156355B (en) 2016-07-27 2016-07-27 Log processing method and device

Publications (2)

Publication Number Publication Date
CN106156355A true CN106156355A (en) 2016-11-23
CN106156355B CN106156355B (en) 2019-02-01

Family

ID=58060987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610600559.7A Active CN106156355B (en) 2016-07-27 2016-07-27 Log processing method and device

Country Status (1)

Country Link
CN (1) CN106156355B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649735A (en) * 2016-12-23 2017-05-10 腾讯科技(深圳)有限公司 Log data recording method and apparatus
CN108984362A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Log collection method and device, storage medium, electronic equipment
WO2018233170A1 (en) * 2017-06-23 2018-12-27 平安科技(深圳)有限公司 Method, device, computer device, and storage medium for recording a log
CN109144965A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of log processing method, device, equipment and medium
CN109361546A (en) * 2018-11-05 2019-02-19 视联动力信息技术股份有限公司 A kind of program method for early warning and device based on view networking
CN110109915A (en) * 2018-01-18 2019-08-09 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of Hash table
CN110851415A (en) * 2019-11-13 2020-02-28 广州小鹏汽车科技有限公司 Log data processing method and device of vehicle-mounted system
CN113094225A (en) * 2020-01-09 2021-07-09 北京搜狗科技发展有限公司 Abnormal log monitoring method and device and electronic equipment
CN113434473A (en) * 2021-06-28 2021-09-24 上海浦东发展银行股份有限公司 Distributed log processing method, device, medium and electronic equipment
CN117093630A (en) * 2023-10-17 2023-11-21 无锡车联天下信息技术有限公司 Dynamic output method for abnormal log of vehicle-mounted system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183333A (en) * 2007-12-12 2008-05-21 腾讯科技(深圳)有限公司 Method for outputting diary of debugging program, device and system
CN101464908A (en) * 2009-01-14 2009-06-24 北京北方微电子基地设备工艺研究中心有限责任公司 Log recording method and device
US7949746B1 (en) * 2007-05-02 2011-05-24 Sprint Spectrum L.P. Logging system for logging operation of a network platform
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7949746B1 (en) * 2007-05-02 2011-05-24 Sprint Spectrum L.P. Logging system for logging operation of a network platform
CN101183333A (en) * 2007-12-12 2008-05-21 腾讯科技(深圳)有限公司 Method for outputting diary of debugging program, device and system
CN101464908A (en) * 2009-01-14 2009-06-24 北京北方微电子基地设备工艺研究中心有限责任公司 Log recording method and device
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649735B (en) * 2016-12-23 2020-01-10 腾讯科技(深圳)有限公司 Method and device for recording log data
CN106649735A (en) * 2016-12-23 2017-05-10 腾讯科技(深圳)有限公司 Log data recording method and apparatus
CN108984362A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Log collection method and device, storage medium, electronic equipment
WO2018233170A1 (en) * 2017-06-23 2018-12-27 平安科技(深圳)有限公司 Method, device, computer device, and storage medium for recording a log
CN110109915B (en) * 2018-01-18 2024-01-05 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for managing hash tables
CN110109915A (en) * 2018-01-18 2019-08-09 伊姆西Ip控股有限责任公司 For managing the method, equipment and computer program product of Hash table
CN109144965A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of log processing method, device, equipment and medium
CN109361546B (en) * 2018-11-05 2022-03-29 视联动力信息技术股份有限公司 Program early warning method and device based on video network
CN109361546A (en) * 2018-11-05 2019-02-19 视联动力信息技术股份有限公司 A kind of program method for early warning and device based on view networking
CN110851415A (en) * 2019-11-13 2020-02-28 广州小鹏汽车科技有限公司 Log data processing method and device of vehicle-mounted system
CN113094225A (en) * 2020-01-09 2021-07-09 北京搜狗科技发展有限公司 Abnormal log monitoring method and device and electronic equipment
CN113094225B (en) * 2020-01-09 2024-03-01 北京搜狗科技发展有限公司 Abnormal log monitoring method and device and electronic equipment
CN113434473A (en) * 2021-06-28 2021-09-24 上海浦东发展银行股份有限公司 Distributed log processing method, device, medium and electronic equipment
CN117093630A (en) * 2023-10-17 2023-11-21 无锡车联天下信息技术有限公司 Dynamic output method for abnormal log of vehicle-mounted system
CN117093630B (en) * 2023-10-17 2024-01-26 无锡车联天下信息技术有限公司 Dynamic output method for abnormal log of vehicle-mounted system

Also Published As

Publication number Publication date
CN106156355B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN106156355A (en) Log processing method and device
CN109189750B (en) Operation method, data analysis system and the storage medium of data analysis workflow
US6941546B2 (en) Method and apparatus for testing a software component using an abstraction matrix
US8589884B2 (en) Method and system for identifying regression test cases for a software
US20170300532A1 (en) Event log analysis
CN108228861B (en) Method and system for performing feature engineering for machine learning
Shihab An exploration of challenges limiting pragmatic software defect prediction
US11449488B2 (en) System and method for processing logs
CN107562532B (en) Method and device for predicting hardware resource utilization rate of equipment cluster
CN110795357A (en) Program monitoring method and device
US20180018392A1 (en) Topic identification based on functional summarization
CN111400361A (en) Data real-time storage method and device, computer equipment and storage medium
CN114490375A (en) Method, device and equipment for testing performance of application program and storage medium
US20180232299A1 (en) Composing future tests
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN109558315A (en) The determination method, device and equipment of test scope
US9507692B2 (en) Downward propagation of results for test cases in application testing
US20240086165A1 (en) Systems and methods for building and deploying machine learning applications
JP2013077124A (en) Software test case generation device
CN110716866A (en) Code quality scanning method and device, computer equipment and storage medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN112783775A (en) Special character input testing method and device
JP7433085B2 (en) system analyzer
Huang et al. Software FMEA approach based on failure modes database
JP2019144873A (en) Block diagram analyzer

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