# Custom report\_server not working with uvm1.2

**URL:** <https://verificationacademy.com/forums/t/custom-report-server-not-working-with-uvm1-2/31519>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [February 18, 2016, 9:05am UTC](https://verificationacademy.com/forums/t/custom-report-server-not-working-with-uvm1-2/31519 "2016-02-18T09:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravanantvs](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@saravanantvs](https://verificationacademy.com/forums/u/saravanantvs)\
**Post date:** [February 18, 2016, 9:05am UTC](https://verificationacademy.com/forums/t/custom-report-server-not-working-with-uvm1-2/31519/1 "2016-02-18T09:05:00Z")

</div>

class my\_report\_server extends uvm\_default\_report\_server;  
`uvm\_object\_utils(my\_report\_server)

```
function new(string name="my_report_server");
    super.new();
    $display( "Constructing report serevr %0s",name);
endfunction : new

virtual function string compose_message( uvm_severity severity,string name,string id,string message,string filename,int line );

```

//implemeted own code.

endfunction

endclass

In the build\_phase of test\_base.

function void build\_phase(uvm\_phase phase)  
my\_report\_server srv\_h = new();  
uvm\_report\_server::set\_server(srv\_h);  
endfunction
