How to dump transaction.log when a simulation is run

Hi,

While running a simulation in UVM test-bench, one of the best practice is to dump a transaction.log corresponding each transaction as seen from a monitor.
How do we enable the same?
Is there a specific format for the command which would dump the transaction.log

In reply to Bharathag93:

You can implement a fileIO in the monitor. But I do not believe it is agood idea to dump transaction because they have so many entries that it is not useful to read them.

In reply to Bharathag93:

uvm_report_info can be redirected to a file.

https://verificationacademy.com/forums/uvm/uvm-reporting#reply-47939

https://verificationacademy.com/forums/uvm/redirecting-uvminfo-outputs-log-file