embed visitId in log message

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

embed visitId in log message

Hansen
Hi,

The current log file is very difficult to use because lines are not
correlated. It would be good if each line includes a visitId. I know this is
not as easy as those applications where a request is handled by a single
thread. In that case, a ThreadLocal variable for the visitId or sessionId
will do the trick. However, many of the ofbiz requests are handled by more
than one threads and therefore the above method will not work for ofbiz. Has
anyone implemented similar mechanism, or has anyone had any suggestion?

Thanks
Hansen