register logger handler must be async