improve logger class