Need to have pid and tid in the logging