How to make error flags of *E and *W become UVM_ERROR and UVM_WARNING?

In reply to Reuben:

Could you please explain what is *E and *W?