good way of logger class