Unlock instant, AI-driven research and patent intelligence for your innovation.

A log setting method, device, equipment and computer-readable storage medium

A log and preset technology, applied in the network field, can solve the problem that the log cannot be accurately located, and achieve the effect of enhancing accuracy

Active Publication Date: 2021-11-23
BEIJING 58 INFORMATION TTECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention proposes a log setting method, device, equipment and computer-readable storage medium to solve the problem that the log cannot be accurately located due to irregular logs in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A log setting method, device, equipment and computer-readable storage medium
  • A log setting method, device, equipment and computer-readable storage medium
  • A log setting method, device, equipment and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0055] In the first embodiment of the present invention, a log setting method, such as figure 1 shown, including the following specific steps:

[0056] Step S101, creating a thread local variable object for each requested thread.

[0057] Wherein, the thread local variable object includes: identification information of the log corresponding to the request.

[0058] Step S102, based on the identification information in the thread local variable object, obtain the log corresponding to the request pre-stored in the preset distributed server.

[0059] Based on the identification information in the thread local variable object, all the logs corresponding to the requested thread pre-stored in the distributed server can be accurately obtained, avoiding the inability to accurately obtain all the logs corresponding to the requested thread, and realizing the thread corresponding to the request All logs are accurately located.

[0060] Step S103, synchronizing the log corresponding to...

no. 2 example

[0063] In the second embodiment of the present invention, a log setting method, such as figure 2 shown, including the following specific steps:

[0064] Step S201, creating a thread local variable object for each requested thread.

[0065] Wherein, the thread local variable object includes: identification information of the log corresponding to the request.

[0066] Step S202, based on the identification information in the thread local variable object, obtain the log corresponding to the request prestored in the preset distributed server.

[0067] Based on the identification information in the thread local variable object, all the logs corresponding to the requested thread pre-stored in the distributed server can be accurately obtained, avoiding the inability to accurately obtain all the logs corresponding to the requested thread, and realizing the thread corresponding to the request All logs are accurately located.

[0068] Step S203, synchronizing the log corresponding t...

no. 3 example

[0072] In the third embodiment of the present invention, a log setting method, such as image 3 shown, including the following specific steps:

[0073] Step S301, creating a thread local variable object for each requested thread.

[0074] Wherein, the thread local variable object includes: identification information of the log corresponding to the request.

[0075] Step S302, based on the identification information in the thread local variable object, obtain the log corresponding to the request prestored in the preset distributed server.

[0076] Based on the identification information in the thread local variable object, all the logs corresponding to the requested thread pre-stored in the distributed server can be accurately obtained, avoiding the inability to accurately obtain all the logs corresponding to the requested thread, and realizing the thread corresponding to the request All logs are accurately located.

[0077] Step S303, synchronizing the log corresponding to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention proposes a log setting method, including: creating a thread local variable object for each requested thread; wherein, the thread local variable object includes: identification information of the log corresponding to the request; based on the thread local variable The identification information in the object obtains the log corresponding to the request pre-stored in the preset distributed server; and synchronizes the log corresponding to the request to the set log server. The invention also discloses a log setting device, equipment and a computer-readable storage medium. By implementing the above solution, the log can be effectively regulated, and the log location accuracy can be effectively enhanced.

Description

technical field [0001] The present invention relates to the field of network technology, in particular to a log setting method, device, equipment and computer-readable storage medium. Background technique [0002] With the rapid development of Internet technology, website servers (including server clusters) will record log information such as website business information, website behavior information, and website abnormal information, and perform some information screening and / or troubleshooting based on log information. There are two main ways to generate logs at present: Method 1, generating website logs through a distributed log system; Method 2, generating logs through manual control of log specifications. [0003] Among them, the first way is to generate website logs through the distributed log system, which requires the support of hardware resources and additional maintenance of the distributed log system, and the cost is relatively high. The second way is to manually...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/30
CPCG06F11/302G06F11/3065G06F11/3093
Inventor 李久超
Owner BEIJING 58 INFORMATION TTECH CO LTD