fix new logger class bugs