How to use report phase for printing perticular uvm_error

The message ID should be unique to help you filter those messages. Questa has a message viewer to help you filter those messages. You can also redirect certain messages to a file. See the method: set_report_severity_id_file