Using logger instead of std::out.