# Using Julia Logging with Multiple Julia Scripts

**URL:** <https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 5, 2020, 3:59pm UTC](https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796 "2020-10-05T15:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmalham](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@bmalham](https://discourse.julialang.org/u/bmalham)\
**Post date:** [October 5, 2020, 3:59pm UTC](https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796/1 "2020-10-05T15:59:53Z")

</div>

Hello,

I currently have a situation where I have one Julia script that calls other Julia functions via the “run” command, and I am trying to find a way to use Julia logging (provided by the ‘Logging’ package) throughout all the Julia scripts. Ulitmately, I want to process all of the logs and take specific action based on the log level in the main Julia script.

I know that I can have the sub-Julia scripts print their logs to a text file, and I’ve also managed to pipe the log printouts from stdout and stderr to my main Julia script, but both of these methods don’t preserve log level so I can’t filter/process the logs in the main script.

Is there a way I can pass the logs from one script to another while preserving the log levels? If not is there a better method to process logs from multiple Julia scripts?

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![dlakelan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dlakelan/32/8491_2.png) [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Post date:** [October 5, 2020, 4:34pm UTC](https://discourse.julialang.org/t/using-julia-logging-with-multiple-julia-scripts/47796/2 "2020-10-05T16:34:06Z")

</div>

I’m not sure why you have multiple different scripts, but can’t you just have one master script that `include`s the others?
