# How to clean Julia logs

**URL:** <https://discourse.julialang.org/t/how-to-clean-julia-logs/138853>\
**Category:** General Usage\
**Created:** [August 17, 2026, 4:36am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853 "2026-08-17T04:36:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Post date:** [August 17, 2026, 4:36am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/1 "2026-08-17T04:36:47Z")

</div>

How can I get clean logs? I want to hide compiling messages and make them use my [log formatter](https://gist.github.com/al6x/4f13740987975a193d0df67e5a551138) not bypass it.

Expected:

```julia-auto
  conf | config {now: Date("2026-08-17")}
  opti | fit started

```

Actual:

```julia-auto
  conf | config {now: Date("2026-08-17")}
Info Given DB was explicitly requested, output will be shown live
Precompiling DB finished.
  1 dependency successfully precompiled in 7 seconds
  1 dependency had output during precompilation:
┌ DB
│ [Output was shown above]
└
Info Given Options was explicitly requested, output will be shown live
Precompiling Options finished.
  1 dependency successfully precompiled in 8 seconds
  1 dependency had output during precompilation:
┌ Options
│ [Output was shown above]
└
Info Given SV_JLs was explicitly requested, output will be shown live
Precompiling SV_JLs finished.
  1 dependency successfully precompiled in 7 seconds
  1 dependency had output during precompilation:
┌ SV_JLs
│ [Output was shown above]
└
  opti | fit started

```

---

<div class="post-metadata">

**Author:** ![piechologist](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piechologist/32/27662_2.png) [@piechologist](https://discourse.julialang.org/u/piechologist)\
**Post date:** [August 17, 2026, 9:15am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/2 "2026-08-17T09:15:22Z")

</div>

AFAIK, this output doesn’t go through the logging mechanism at all, it writes directly to stdout/stderr. You can try `Base.Precompilation.precompilepkgs(io=devnull)` (Julia 1.11+ or so). This function is not exported/public though.

Do you have some kind of deployment workflow? I’d add a precompile step there and then start a clean production process. That’s the way I got rid of the noise in the system journal.

---

<div class="post-metadata">

**Author:** ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Post date:** [August 17, 2026, 10:17am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/3 "2026-08-17T10:17:29Z")

</div>

Thanks. Deployment is secondary, I want clean logs during development, without bunch of nonsense about compilation start and end.

Idea to log compilation progress is really strange - it - it’s like julia is extremely slow on startup, so to soften it a bit - you can enjoy reading compiler telling you what its doing while you are waiting…

And not even allowing to format or disable it…

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 17, 2026, 10:38am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/4 "2026-08-17T10:38:17Z")

</div>

`stderr` is a shared resource so if you want a private place where only your logs go you should set up a file logger for that.

---

<div class="post-metadata">

**Author:** ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Post date:** [August 17, 2026, 4:41pm UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/5 "2026-08-17T16:41:59Z")

</div>

Hmm, maybe I miss something, why I need to redirect my logs to file if I can just read it in console?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 17, 2026, 4:43pm UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/6 "2026-08-17T16:43:51Z")

</div>

I just mean that you can’t really “ban” people/packages/etc from stderr.

---

<div class="post-metadata">

**Author:** ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)\
**Post date:** [August 22, 2026, 4:31am UTC](https://discourse.julialang.org/t/how-to-clean-julia-logs/138853/7 "2026-08-22T04:31:46Z")

</div>

Is there maybe a way to alter julia core language files to make those logs disappear?
