# How to save sampling progress to log

**URL:** <https://discourse.pymc.io/t/how-to-save-sampling-progress-to-log/9796>\
**Category:** v3\
**Created:** [July 1, 2022, 6:18am UTC](https://discourse.pymc.io/t/how-to-save-sampling-progress-to-log/9796 "2022-07-01T06:18:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qipengchen](https://avatars.discourse-cdn.com/v4/letter/q/65b543/32.png) [@qipengchen](https://discourse.pymc.io/u/qipengchen)\
**Post date:** [July 1, 2022, 6:18am UTC](https://discourse.pymc.io/t/how-to-save-sampling-progress-to-log/9796/1 "2022-07-01T06:18:21Z")

</div>

The nohup command (nohup python pymc\_model.py \>run.log&) does not output the sample progress bar to the log file. How can I handle it? Any advice is appreciated！

---

<div class="post-metadata">

**Author:** ![qipengchen](https://avatars.discourse-cdn.com/v4/letter/q/65b543/32.png) [@qipengchen](https://discourse.pymc.io/u/qipengchen)\
**Post date:** [July 1, 2022, 1:41pm UTC](https://discourse.pymc.io/t/how-to-save-sampling-progress-to-log/9796/2 "2022-07-01T13:41:59Z")

</div>

It seems that can be solve :

```auto
from fastprogress import fastprogress
fastprogress.printing = lambda: True

```
