use logger instead of fmt for error in ext_app