CN108319536B - Log setting method, device and equipment and computer readable storage medium - Google Patents

Log setting method, device and equipment and computer readable storage medium Download PDF

Info

Publication number
CN108319536B
CN108319536B CN201711478595.1A CN201711478595A CN108319536B CN 108319536 B CN108319536 B CN 108319536B CN 201711478595 A CN201711478595 A CN 201711478595A CN 108319536 B CN108319536 B CN 108319536B
Authority
CN
China
Prior art keywords
log
request
identification information
local variable
thread
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711478595.1A
Other languages
Chinese (zh)
Other versions
CN108319536A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201711478595.1A priority Critical patent/CN108319536B/en
Publication of CN108319536A publication Critical patent/CN108319536A/en
Application granted granted Critical
Publication of CN108319536B publication Critical patent/CN108319536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a log setting method, which comprises the following steps: creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request; acquiring a log corresponding to the request prestored in a preset distributed server based on the identification information in the thread local variable object; and synchronizing the log corresponding to the request to a set log server. The invention also discloses a log setting device, equipment and a computer readable storage medium.

Description

Log setting method, device and equipment and computer readable storage medium
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for setting a log.
Background
With the rapid development of the internet technology, a website server (including a server cluster) records log information such as website service information, website behavior information and website abnormal information, and performs some information screening and/or problem troubleshooting according to the log information. The current log generation modes mainly include two types: generating a website log through a distributed log system in a first mode; and in the second mode, the log is generated by manually controlling the specification of the log.
In the first mode, the website logs are generated through the distributed log system, support of hardware resources is needed, and the cost is high due to the fact that the distributed log system is additionally maintained. In the second mode, the log is generated by manually controlling the specification of the log, and all log information cannot be comprehensively displayed in the same network request; in a project based on distributed load deployment, network requests from projects such as a gateway and a web (network) fall into which underlying service layer component service the time falls, and are filtered one by one; meanwhile, a large number of non-standard logs also affect an input/output (I/O) port of a disk.
Disclosure of Invention
The invention provides a log setting method, a log setting device, log setting equipment and a computer readable storage medium, which are used for solving the problem that logs cannot be accurately positioned due to the fact that the logs are not standard in the prior art.
The technical scheme adopted by the invention is to provide a log setting method, which comprises the following steps:
creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
acquiring a log corresponding to the request prestored in a preset distributed server based on the identification information in the thread local variable object;
and synchronizing the log corresponding to the request to a set log server.
Optionally, after synchronizing the log corresponding to the request to a set log server, the method further includes:
when a log query instruction of any request is received, a log corresponding to the request is obtained in the set log server based on identification information carried in the log query instruction.
Optionally, the receiving of the log query instruction of any request includes:
receiving any log query instruction of any request sent by any terminal or any network terminal.
Optionally, the number of the identification information is multiple;
the acquiring, based on the identification information in the thread local variable object, a log corresponding to the request pre-stored in the distributed server includes:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Optionally, the synchronizing the log corresponding to the request to a set log server includes:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
The present invention also provides a log setting device, including:
the creating module is used for creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
the acquisition module is used for acquiring a log corresponding to the request pre-stored in a preset distributed server based on the identification information in the thread local variable object;
and the synchronization module is used for synchronizing the log corresponding to the request to a set log server.
Optionally, the apparatus further comprises:
and the query module is used for synchronizing the log corresponding to the request to a set log server, and acquiring the log corresponding to the request from the set log server based on the identification information carried in the log query instruction when the log query instruction of any request is received.
Optionally, the receiving of the log query instruction of any request includes:
receiving any log query instruction of any request sent by any terminal or any network terminal.
Optionally, the number of the identification information is multiple;
the acquisition module is specifically configured to:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Optionally, the synchronization module is specifically configured to:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
The invention also provides log setting equipment, which comprises a processor and a memory;
the processor is configured to execute a program of log settings stored in the memory to implement the steps of:
creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
acquiring a log corresponding to the request prestored in a preset distributed server based on the identification information in the thread local variable object;
and synchronizing the log corresponding to the request to a set log server.
Optionally, after synchronizing the log corresponding to the request to a set log server, the processor is further configured to execute the log setting program to implement the following steps:
when a log query instruction of any request is received, a log corresponding to the request is obtained in the set log server based on identification information carried in the log query instruction.
Optionally, the number of the identification information is multiple;
the acquiring, based on the identification information in the thread local variable object, a log corresponding to the request pre-stored in the distributed server includes:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Optionally, the synchronizing the log corresponding to the request to a set log server includes:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
The present invention also provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the log setting method described above.
By adopting the technical scheme, the invention at least has the following advantages:
the log setting method, the log setting device, the log setting equipment and the computer readable storage medium can effectively standardize the log and effectively enhance the log positioning accuracy.
Drawings
FIG. 1 is a flowchart of a log setting method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a log setting method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a log setting method according to a third embodiment of the present invention;
FIG. 4 is a flowchart of a log setting method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart of a log setting method according to a fifth embodiment of the present invention;
fig. 6 is a schematic diagram of a composition structure of a log setting device according to a sixth embodiment to a tenth embodiment of the present invention;
FIG. 7 is a schematic diagram of a log configuration apparatus according to a twelfth embodiment of the present invention;
fig. 8 is a schematic diagram of a log setting apparatus according to a thirteenth to sixteenth embodiments of the present invention.
Detailed Description
To further explain the technical means and effects of the present invention adopted to achieve the intended purpose, the present invention will be described in detail with reference to the accompanying drawings and preferred embodiments.
A first embodiment of the present invention provides a log setting method, as shown in fig. 1, including the following specific steps:
step S101, a thread local variable object is created for each requested thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
And step S102, acquiring logs corresponding to requests pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
Step S103, synchronizing the log corresponding to the request to a set log server.
All the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
The log setting method of the first embodiment of the invention can effectively standardize the log, and effectively enhance the log positioning accuracy; all the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
A second embodiment of the present invention provides a log setting method, as shown in fig. 2, including the following specific steps:
in step S201, a thread-local variable object is created for each requested thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
Step S202, based on the identification information in the thread local variable object, acquiring a log corresponding to a request pre-stored in a preset distributed server.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
Step S203, synchronize the log corresponding to the request to the setting log server.
Step S204, when receiving the log query instruction of any request, based on the identification information carried in the log query instruction, obtaining the log corresponding to any request in the set log server.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting method of the second embodiment of the invention can effectively standardize the log, and effectively enhance the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A third embodiment of the present invention provides a log setting method, as shown in fig. 3, including the following specific steps:
in step S301, a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
Step S302, based on the identification information in the thread local variable object, acquiring a log corresponding to a request pre-stored in a preset distributed server.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
Step S303, synchronize the log corresponding to the request to the setting log server.
Step S304, when receiving the log query instruction of any request, acquiring the log corresponding to any request in the set log server based on the identification information carried in the log query instruction.
Optionally, step S304 includes:
when a log query instruction of any request sent by any terminal or any network terminal is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
The log setting method of the third embodiment of the invention can effectively standardize the log, and effectively enhance the log positioning accuracy; all the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
A fourth embodiment of the present invention provides a log setting method, as shown in fig. 4, including the following specific steps:
in step S401, a thread-local variable object is created for each requested thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
Step S402, acquiring logs corresponding to requests pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Optionally, step S402 includes:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
Step S403, synchronize the log corresponding to the request to the setting log server.
Step S404, when receiving the log query instruction of any request, based on the identification information carried in the log query instruction, obtaining the log corresponding to any request in the set log server.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting method of the fourth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A fifth embodiment of the present invention provides a log setting method, as shown in fig. 5, including the following specific steps:
in step S501, a thread local variable (ThreadLocal) object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
Step S502, based on the identification information in the thread local variable object, acquiring a log corresponding to a request pre-stored in a preset distributed server.
Optionally, step S502 includes:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
Step S503, synchronize the log corresponding to the request to the setting log server.
Optionally, step S503 includes:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log (Syslog) protocol.
Based on a preset system log protocol, all logs corresponding to the request are synchronized to the set log server, so that the accuracy and efficiency of synchronizing all logs corresponding to the request to the set log server can be effectively improved.
Step S504, when receiving the log query instruction of any request, based on the identification information carried in the log query instruction, obtaining the log corresponding to any request in the set log server.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting method of the fifth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A sixth embodiment of the present invention, a log setting device, as shown in fig. 6, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform the following operations:
1) a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
2) And acquiring a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
3) And synchronizing the log corresponding to the request to a set log server.
All the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
The log setting device of the sixth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
A seventh embodiment of the present invention, a log setting device, as shown in fig. 6, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform the following operations:
1) a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
2) And acquiring a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
3) And synchronizing the log corresponding to the request to a set log server.
4) When a log query instruction of any request is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device of the seventh embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
An eighth embodiment of the present invention, a log setting device, as shown in fig. 6, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform the following operations:
1) a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
2) And acquiring a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
3) And synchronizing the log corresponding to the request to a set log server.
4) When a log query instruction of any request is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
Optionally, when receiving a log query instruction of any request, a manner of obtaining a log corresponding to any request in a log server is set based on identification information carried in the log query instruction, including:
when a log query instruction of any request sent by any terminal or any network terminal is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
The log setting device of the eighth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
A ninth embodiment of the present invention, a log setting device, as shown in fig. 6, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform the following operations:
1) a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
2) And acquiring a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Optionally, the obtaining, based on the identification information in the thread local variable object, a manner of presetting a log corresponding to a request stored in the distributed server includes:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
3) And synchronizing the log corresponding to the request to a set log server.
4) When a log query instruction of any request is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device of the ninth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A tenth embodiment of the present invention, a log setting device, as shown in fig. 6, includes the following components:
a processor 601 and a memory 602. In some embodiments of the invention, the processor 601 and the memory 602 may be connected by a bus or other means.
Processor 601 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. Wherein, the memory 602 is used for storing executable instructions of the processor 601;
a memory 602 for storing the program code and transferring the program code to the processor 601. The Memory 602 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The processor 601 is configured to call the program code management code stored in the memory 602, and perform the following operations:
1) a thread-local variable object is created for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
2) And acquiring a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Optionally, the obtaining, based on the identification information in the thread local variable object, a manner of presetting a log corresponding to a request stored in the distributed server includes:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
3) And synchronizing the log corresponding to the request to a set log server.
Optionally, the synchronizing the log corresponding to the request to the set log server includes:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
Based on a preset system log protocol, all logs corresponding to the request are synchronized to the set log server, so that the accuracy and efficiency of synchronizing all logs corresponding to the request to the set log server can be effectively improved.
4) When a log query instruction of any request is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device of the tenth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
An eleventh embodiment of the present invention is a computer-readable storage medium.
The computer storage media may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
The computer readable storage medium stores one or more programs which are executable by one or more processors to implement some or all of the steps in any of the first through fifth embodiments of the present invention.
The computer-readable storage medium according to the eleventh embodiment of the present invention stores one or more programs, and the one or more programs are executable by one or more processors, so that the logs can be effectively normalized, and the log positioning accuracy is effectively enhanced; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A twelfth embodiment of the present invention, a log setting apparatus, as shown in fig. 7, includes the following components:
a creation module 100 for creating a thread-local variable object for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
The obtaining module 200 is configured to obtain a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
The synchronization module 300 is configured to synchronize the log corresponding to the request to the configured log server.
All the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
The log setting device of the twelfth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the request are synchronized to the set log server, so that all the logs corresponding to any one of the threads of the request can be accurately obtained, and meanwhile, the speed of obtaining all the logs corresponding to any one of the threads of the request is improved.
A thirteenth embodiment of the present invention, a log setting apparatus, as shown in fig. 8, includes the following components:
a creation module 100 for creating a thread-local variable object for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
The obtaining module 200 is configured to obtain a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
The synchronization module 300 is configured to synchronize the log corresponding to the request to the configured log server.
The query module 400 is configured to, when receiving a log query instruction of any request, obtain a log corresponding to the any request in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device of the thirteenth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A fourteenth embodiment of the present invention, a log setting apparatus, as shown in fig. 8, includes the following components:
a creation module 100 for creating a thread-local variable object for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
The obtaining module 200 is configured to obtain a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
The synchronization module 300 is configured to synchronize the log corresponding to the request to the configured log server.
The query module 400 is configured to, when receiving a log query instruction of any request, obtain a log corresponding to the any request in a set log server based on identification information carried in the log query instruction.
Optionally, the query module 400 is specifically configured to:
when a log query instruction of any request sent by any terminal or any network terminal is received, a log corresponding to any request is acquired in a set log server based on identification information carried in the log query instruction.
All the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
The log setting device in the fourteenth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the logs corresponding to the acquired threads of the request are synchronized to a set log server, so that all the logs corresponding to the threads of any request can be accurately acquired based on a received log query instruction sent by any terminal or any network terminal, the speed of acquiring all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved; the method and the device realize the query of the logs in the set log server through the terminal or the network terminal, so as to be beneficial to the rapid query of the logs through various query terminals.
A fifteenth embodiment of the present invention, a log setting apparatus, as shown in fig. 8, includes the following components:
a creation module 100 for creating a thread-local variable object for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
The obtaining module 200 is configured to obtain a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Optionally, the obtaining module 200 is specifically configured to:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
The synchronization module 300 is configured to synchronize the log corresponding to the request to the configured log server.
The query module 400 is configured to, when receiving a log query instruction of any request, obtain a log corresponding to the any request in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device in the fifteenth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
A sixteenth embodiment of the present invention, a log setting apparatus, as shown in fig. 8, includes the following components:
a creation module 100 for creating a thread local variable (thread) object for each requesting thread.
Wherein the thread local variable object comprises: the request corresponds to identification information of a log.
The obtaining module 200 is configured to obtain a log corresponding to a request pre-stored in a preset distributed server based on the identification information in the thread local variable object.
Optionally, the obtaining module 200 is specifically configured to:
the number of the identification information of the log corresponding to the request is multiple;
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
Based on the identification information in the thread local variable object, all logs corresponding to the requested thread pre-stored in the distributed server can be accurately acquired, the problem that all logs corresponding to the requested thread cannot be accurately acquired is avoided, and all logs corresponding to the requested thread are accurately positioned.
The synchronization module 300 is configured to synchronize the log corresponding to the request to the configured log server.
Optionally, the synchronization module 300 is specifically configured to:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log (Syslog) protocol.
Based on a preset system log protocol, all logs corresponding to the request are synchronized to the set log server, so that the accuracy and efficiency of synchronizing all logs corresponding to the request to the set log server can be effectively improved.
The query module 400 is configured to, when receiving a log query instruction of any request, obtain a log corresponding to the any request in a set log server based on identification information carried in the log query instruction.
All the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
The log setting device of the sixteenth embodiment of the invention can effectively standardize the log, thereby effectively enhancing the log positioning accuracy; all the obtained logs corresponding to the threads of the requests are synchronized to the set log server, all the logs corresponding to the threads of any request can be accurately obtained based on the received log query instruction, meanwhile, the speed of obtaining all the logs corresponding to the threads of any request is improved, and the log query efficiency is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A log setting method, comprising:
creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
acquiring a log corresponding to the request prestored in a preset distributed server based on the identification information in the thread local variable object;
synchronizing the log corresponding to the request to a set log server;
the number of the identification information is multiple;
the acquiring, based on the identification information in the thread local variable object, a log corresponding to the request pre-stored in the distributed server includes:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
2. The method of claim 1, wherein after synchronizing the log corresponding to the request to a profile log server, the method further comprises:
when a log query instruction of any request is received, a log corresponding to the request is obtained in the set log server based on identification information carried in the log query instruction.
3. The method of claim 2, wherein receiving the log query instruction of any request comprises:
receiving any log query instruction of any request sent by any terminal or any network terminal.
4. The method of claim 1, wherein synchronizing the log corresponding to the request to a profile log server comprises:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
5. A log setting apparatus characterized by comprising:
the creating module is used for creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
the acquisition module is used for acquiring a log corresponding to the request pre-stored in a preset distributed server based on the identification information in the thread local variable object;
the synchronization module is used for synchronizing the log corresponding to the request to a set log server;
the number of the identification information is multiple;
the acquisition module is specifically configured to:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
6. The apparatus of claim 5, further comprising:
and the query module is used for synchronizing the log corresponding to the request to a set log server, and acquiring the log corresponding to the request from the set log server based on the identification information carried in the log query instruction when the log query instruction of any request is received.
7. The apparatus of claim 6, wherein the receiving of the log query instruction of any request comprises:
receiving any log query instruction of any request sent by any terminal or any network terminal.
8. The apparatus of claim 5, wherein the synchronization module is specifically configured to:
and synchronizing all logs corresponding to the request to a set log server based on a preset system log protocol.
9. A log setting apparatus, characterized in that the log setting apparatus comprises a processor and a memory;
the processor is configured to execute a program of log settings stored in the memory to implement the steps of:
creating a thread local variable object for each requested thread; wherein the thread local variable object comprises: identification information of a log corresponding to the request;
acquiring a log corresponding to the request prestored in a preset distributed server based on the identification information in the thread local variable object;
synchronizing the log corresponding to the request to a set log server;
the number of the identification information is multiple;
the acquiring, based on the identification information in the thread local variable object, a log corresponding to the request pre-stored in the distributed server includes:
and respectively inquiring a pre-stored log corresponding to the request in each preset distributed server based on the identification information in the thread local variable object to obtain all logs corresponding to the request.
10. A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the log setting method according to any one of claims 1 to 4.
CN201711478595.1A 2017-12-29 2017-12-29 Log setting method, device and equipment and computer readable storage medium Active CN108319536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711478595.1A CN108319536B (en) 2017-12-29 2017-12-29 Log setting method, device and equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711478595.1A CN108319536B (en) 2017-12-29 2017-12-29 Log setting method, device and equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108319536A CN108319536A (en) 2018-07-24
CN108319536B true CN108319536B (en) 2021-11-23

Family

ID=62893483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711478595.1A Active CN108319536B (en) 2017-12-29 2017-12-29 Log setting method, device and equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108319536B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344070A (en) * 2018-10-10 2019-02-15 郑州云海信息技术有限公司 A kind of object localization method, device, system and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224445A (en) * 2015-10-28 2016-01-06 北京汇商融通信息技术有限公司 Distributed tracking system
CN106487596A (en) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 Distributed Services follow the tracks of implementation method
CN106502874A (en) * 2016-10-26 2017-03-15 南京途牛科技有限公司 A kind of call chain tracking
CN107122290A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The recording method of log information and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684898B (en) * 2012-09-14 2017-06-23 阿里巴巴集团控股有限公司 It is a kind of to monitor the method and device that user's request is run in a distributed system
US9529568B1 (en) * 2014-12-19 2016-12-27 Amazon Technologies, Inc. Systems and methods for low interference logging and diagnostics
CN106649061B (en) * 2015-11-04 2019-12-10 阿里巴巴集团控股有限公司 Method and equipment for recording operation log of user in web system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224445A (en) * 2015-10-28 2016-01-06 北京汇商融通信息技术有限公司 Distributed tracking system
CN107122290A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The recording method of log information and device
CN106487596A (en) * 2016-10-26 2017-03-08 宜人恒业科技发展(北京)有限公司 Distributed Services follow the tracks of implementation method
CN106502874A (en) * 2016-10-26 2017-03-15 南京途牛科技有限公司 A kind of call chain tracking

Also Published As

Publication number Publication date
CN108319536A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN108055264B (en) Scheduling apparatus and method for push streaming server, and computer-readable storage medium
CN107257392B (en) Method and device for setting equipment serial number and computer readable storage medium
WO2021042923A1 (en) Data sharding storage method and apparatus, and terminal and computer-readable storage mediium
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
WO2019201039A1 (en) Method and system for updating application and application server
US20180131583A1 (en) Automatic provisioning of cloud services
CN104539977A (en) Live broadcast previewing method and device
CN106549789B (en) Method and system for realizing server installation
CN110968356B (en) Method and device for acquiring configuration information
CN110597918A (en) Account management method and device and computer readable storage medium
CN106708573B (en) System and method for Hadoop cluster automatic installation
CN106331749B (en) Video request method and system
CN109040263B (en) Service processing method and device based on distributed system
GB2507037A (en) Software application discovery using variable frequency file system scanning
CN108319536B (en) Log setting method, device and equipment and computer readable storage medium
CN111064776A (en) Method and device for generating blocks in block chain and storage medium
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN110430290B (en) Resource address updating method, computer device and storage medium
CN104700255B (en) Multi-process processing method, device and system
CN101146107B (en) A method and device for data download
CN110891033B (en) Network resource processing method, device, gateway, controller and storage medium
US20130031226A1 (en) Broadcast-based update management
CN107632865B (en) FPGA configuration upgrading method and device
CN102957958B (en) Set-top box upgrading method and set-top box terminal
CN110769462B (en) Network access control method and device

Legal Events

Date Code Title Description
PB01 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