# Controlling the logger level for a module

**URL:** https://discourse.julialang.org/t/controlling-the-logger-level-for-a-module/19052
**Category:** New to Julia
**Created:** [December 28, 2018, 4:46am UTC](https://discourse.julialang.org/t/controlling-the-logger-level-for-a-module/19052 "2018-12-28T04:46:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AtsushiSakai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/atsushisakai/32/6559_2.png) [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)
#### Post date: [December 28, 2018, 4:46am UTC](https://discourse.julialang.org/t/controlling-the-logger-level-for-a-module/19052/1 "2018-12-28T04:46:56Z")

</div>

Hi. I can understand how to control the logger level for a function and a global scope with this post:

- [Controlling the new Logger (@debug messages) - Usage - JuliaLang](https://discourse.julialang.org/t/controlling-the-new-logger-debug-messages/13732)

Is it possible to control logger level for a module?  
I would like to set different logger levels on each module.

---

<div class="post-metadata">

### Author: ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)
#### Post date: [December 28, 2018, 4:28pm UTC](https://discourse.julialang.org/t/controlling-the-logger-level-for-a-module/19052/2 "2018-12-28T16:28:14Z")

</div>

It wasn’t mentioned clearly there, but it’s referenced in the manual, the ENV variable “JULIA\_DEBUG” can be set to a comma-separate string of the module or file names to force-enable printing of debug messages for anything that matches that filter

---

<div class="post-metadata">

### Author: ![AtsushiSakai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/atsushisakai/32/6559_2.png) [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)
#### Post date: [December 29, 2018, 9:11am UTC](https://discourse.julialang.org/t/controlling-the-logger-level-for-a-module/19052/3 "2018-12-29T09:11:47Z")

</div>

Thank you!!. This helps me a lot.
