# Model training log

**URL:** <https://forum.rasa.com/t/model-training-log/30342>\
**Category:** Rasa Open Source\
**Created:** [June 17, 2020, 6:49pm UTC](https://forum.rasa.com/t/model-training-log/30342 "2020-06-17T18:49:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomankarB](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SomankarB](https://forum.rasa.com/u/SomankarB)\
**Post date:** [June 17, 2020, 6:49pm UTC](https://forum.rasa.com/t/model-training-log/30342/1 "2020-06-17T18:49:46Z")

</div>

Hi,

I am training a model by using rasa.train in Jupyter.

Is there a way to log the progress output to a file? Currently the progress is visible in the Jupyter UI.

Regards,

---

<div class="post-metadata">

**Author:** ![SomankarB](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SomankarB](https://forum.rasa.com/u/SomankarB)\
**Post date:** [June 18, 2020, 10:49am UTC](https://forum.rasa.com/t/model-training-log/30342/2 "2020-06-18T10:49:11Z")

</div>

a sort of solution is:

import logging

logging.basicConfig(filename=‘file.log’, filemode=‘w’,)  
logging.captureWarnings(True)

---

<div class="post-metadata">

**Author:** ![rctatman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rctatman/32/6734_2.png) [@rctatman](https://forum.rasa.com/u/rctatman)\
**Post date:** [June 18, 2020, 4:06pm UTC](https://forum.rasa.com/t/model-training-log/30342/3 "2020-06-18T16:06:20Z")

</div>

Since you’re using Jupyter, probably the easiest way to is use the [%capture](https://ipython.readthedocs.io/en/stable/interactive/magics.html#cellmagic-capture) magic, which will save the output using a variable name you provide. From there you can save/print/manipulate as you like.🙂

---

<div class="post-metadata">

**Author:** ![SomankarB](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SomankarB](https://forum.rasa.com/u/SomankarB)\
**Post date:** [June 19, 2020, 7:47am UTC](https://forum.rasa.com/t/model-training-log/30342/4 "2020-06-19T07:47:55Z")

</div>

Thanks. This should do the job.
