# Logging: filter packages

**URL:** <https://discourse.julialang.org/t/logging-filter-packages/98692>\
**Category:** General Usage\
**Tags:** question, logging\
**Created:** [May 11, 2023, 4:02pm UTC](https://discourse.julialang.org/t/logging-filter-packages/98692 "2023-05-11T16:02:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FedeClaudi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedeclaudi/32/33490_2.png) [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Post date:** [May 11, 2023, 4:02pm UTC](https://discourse.julialang.org/t/logging-filter-packages/98692/1 "2023-05-11T16:02:59Z")

</div>

Hey folks,

A quick question: I’ve set the logging level so that I can see `@debug` messages from my package as I develop stuff. However this will naturally also show `@debug` messages from other packages that are called from my code. I don’t want to see these: they clutter my logs with no relevant information to me.  
Is there a way to “filter” log messages? In python you can filter some packages so that they log messages don’t show. Is there a way to only show debug messages from my code and @info/@warn from others?

Thank you

---

<div class="post-metadata">

**Author:** ![ctrekker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctrekker/32/49676_2.png) [@ctrekker](https://discourse.julialang.org/u/ctrekker)\
**Post date:** [May 11, 2023, 5:23pm UTC](https://discourse.julialang.org/t/logging-filter-packages/98692/2 "2023-05-11T17:23:43Z")

</div>

The “JULIA\_DEBUG” environment variable allows you pick modules you wish to display debug info from. For example, if you are working from the `Main` module, you can enable `@debug` logs specifically for `Main` like so:

```julia
ENV["JULIA_DEBUG"] = Main

```

Here’s a link to a relevant section in the docs: [Logging · The Julia Language](https://docs.julialang.org/en/v1.9/stdlib/Logging/#Environment-variables)
