remove logger lock function