Write converged values of PE and force norm after minimization to a file

Hi,

I wish to write the converged values of the total potential energy, force norm and maybe other quantities after minimisation at each loadstep in a separate file. What is the appropriate command for the same?

Thanks.

https://docs.lammps.org/print.html