appending headers to log entries

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

appending headers to log entries


I have been assigned a task to include header information on all log entries. This will help us track interactions across requests. I was thinking of using ThreadLocal to hold this information and writing a custom logger that would use the it to append the header info to each log entry. Is there a better way of doing this?

Thanks in advance,