My intension is not to say anything not working. The 2 options, one deviding the log thread wise at the end process causing performance problems. It was taking long time.
the second option also tried. i used ThreadLocal with separated the FileAppenders for each thread. But no proper logging is possible.
With NDC also same performance problem came when testing.Thanks for your support....