# Save (part of) the log file from scripted module

**URL:** <https://discourse.slicer.org/t/save-part-of-the-log-file-from-scripted-module/20884>\
**Category:** Development\
**Tags:** scripted\
**Created:** [December 2, 2021, 1:46pm UTC](https://discourse.slicer.org/t/save-part-of-the-log-file-from-scripted-module/20884 "2021-12-02T13:46:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atracsys-sbt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/atracsys-sbt/32/11434_2.png) [@atracsys-sbt](https://discourse.slicer.org/u/atracsys-sbt)\
**Post date:** [December 2, 2021, 1:46pm UTC](https://discourse.slicer.org/t/save-part-of-the-log-file-from-scripted-module/20884/1 "2021-12-02T13:46:37Z")

</div>

Hi,  
As part of the output files of my scripted module, I would like to provide the whole python console history in a file. I thought of parsing the log file from Temp/Slicer for [Stream] lines, but I don’t know how to access it from within my module.  
What’s possible to achieve my goal ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [December 2, 2021, 2:22pm UTC](https://discourse.slicer.org/t/save-part-of-the-log-file-from-scripted-module/20884/2 "2021-12-02T14:22:48Z")

</div>

take a look at the logging python module, it is straightforward.
