I run Mathematica packages in batch mode. I need a log file showing input commands and displaying their output.
I tried these commands
slogf = OpenWrite["logfile.log"]
AppendTo[$Output, slogf]
AppendTo[$Echo, slogf]
However, 'logfile' contains only some output.
Any hint?
$Messages
. Take a look at the suggestions here: How to record all the output (including error messages) of a mathematica script in a file?. $\endgroup$