How to use a number to distinguish the processing logs of different requests in the log4j log in the tornado web service

my server framework is tornado framework, which uses log4j to print logs. How to make sure that there is a number similar to thread id in the log generated by each request to distinguish between different requests for printing logs, a bit like thread id, but each request for printing thread id is the same, what a good solution, using no number to identify logs generated without request processing

Mar.03,2021
Menu