In reply to dave_59:
Tried few experiments with this and it is not working for me yet. Tried this
OVM_FILE fh = $fopen("comp1.log","w");
`ovm_info(get_type_name(), "Component 1 LOG", OVM_NONE)
The file gets created, but it is empty. I want to set up this log for a component such that all messages from this component and all the instances inside this component will dump to this file. Do u see any issues here.