new logging based on thread