# Log file for uvm object type class

**URL:** <https://verificationacademy.com/forums/t/log-file-for-uvm-object-type-class/39331>\
**Category:** UVM\
**Tags:** UVM, UVM-Reporting, uvm-info\
**Created:** [July 19, 2021, 12:52am UTC](https://verificationacademy.com/forums/t/log-file-for-uvm-object-type-class/39331 "2021-07-19T00:52:28Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [July 21, 2021, 3:18am UTC](https://verificationacademy.com/forums/t/log-file-for-uvm-object-type-class/39331/6 "2021-07-21T03:18:32Z")

</div>

_In reply to [bhupeshpaliwal](https://verificationacademy.com/forums/t/log-file-for-uvm-object-type-class/39331/5):_

You are being led in the wrong direction. And your vision is obscured by by the use of macros.

When you use the `uvm\_info macro, it calls uvm\_report\_info which is both a method of uvm\_report\_object and a global function. If you call uvm\_report\_info from a class not derived from uvm\_report\_object, like uvm\_object, it picks up the the global function. uvm\_component is derived from uvm\_report\_object.

What you should do is extend my\_obj from uvm\_report\_object, not uvm\_object. Every instance of a class derived from uvm\_report\_object has an instance of uvm\_report\_handler, and that is where al the report settings get stored. Every instance of a class derived from uvm\_report\_object can have unique report settings.

It seems like you are try to use the uvm\_report\_handler from my\_comp. It is possible to do that using a different set of macros:`uvm\_info\_context(arg, “this print goes to log file”, UVM\_HIGH, creator\_s). But realize these settings get applied to the component instance which get shared by all the other objects created by my\_comp.

---

_[View the full topic](https://verificationacademy.com/forums/t/log-file-for-uvm-object-type-class/39331)._
