# Log-file

**URL:** <https://forum.dynare.org/t/log-file/5540>\
**Category:** Dynare help (legacy posts)\
**Created:** [27 May 2016 05:48 UTC](https://forum.dynare.org/t/log-file/5540 "2016-05-27T05:48:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynare\_usr](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6f9a4e/32.png) [@dynare\_usr](https://forum.dynare.org/u/dynare_usr)\
**Post date:** [27 May 2016 05:48 UTC](https://forum.dynare.org/t/log-file/5540/1 "2016-05-27T05:48:04Z")

</div>

I run several Dynare runs via an m-file and would like to save MatLab output for future use as a log-file. Although Dynare creates a log-file by default, in my case it saves output of the last of Dynare run only.

Is there a way to save output of the entire run by Dynare tools or should I use MatLab’s _diary_ function?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [28 May 2016 08:38 UTC](https://forum.dynare.org/t/log-file/5540/2 "2016-05-28T08:38:57Z")

</div>

Try running Dynare with `nolog` option at the preprocessor stage and then use the `diary`  
function of Matlab.
