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