I still don't understand.
How are the threads started?

Are you talking about any thread?
So if some thread is started from somewhere, and then finishes, you want a logentry in a special logfile?
With one entry for every finished thread?