Logging cap for libpthread_wrapper implemented and new sample program.