Thank you for your suggestion.
But I have traced Ivy core, and I see: every time Ivy rest create a WebTarget **WebTarget** instance, it registers a filter to trace log with specific category name "rest_client" **"rest_client"** in RestCallLoggingAndHistoryFilter **RestCallLoggingAndHistoryFilter** class. It traces all rest request with same one category.
With your suggestion, I only could forward log of all requests to one log file.
So, my requirement needs to separate the log content for every request, **every request to every log file.** **How could I do that?**
I tried with log4j content filter by regular expression, but it is not working.working well.
And I tried another solution: use **java reflection** for changing the **runtimeLogger** property in that filter to separate them to every log file for every request. But I think this solution not good if the variable has been changed the name in the future.future or this way will make performance slower a little bit.
**Do you have any better solution for this requirement?**