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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


