moved logger higher