[PATCH v4 11/35] monitor: use class methods for monitor_vprintf