Proper way of getting logger level.