How to use set_report_severity_action for the sequence?

set_report_severity_action is part of uvm_report_object, as the sequence item is uvm_object. Ex: if i want to set it for driver from testcase i can use like env.agent.driver.set_report_severity_action(UVM_INFO,UVM_LOG) but how to use it for the sequence. For sequence should i use the set_report_severity_action_hier?

In reply to PatilAkshay:

When calling `uvm_info(ID,MSG,UVM_LOW) from a class not derived from uvm_report_object, it calls the uvm_pkg::uvm_report_object which use the top level uvm_top instance.

So what you probably want to do is call uvm_top.set_report_severity_id_action() using the reporting ID.

Alternatively, you can use the sequencer as the context, and then in your sequence call `uvm_info_context(ID,MSG,UVM_LOW,m_sequencer). Then you can use env.agent.sequencer.set_report_severity_action(UVM_INFO,UVM_LOG)