Use logger instead of stdout