before removing logger