Add threading test for logger