# JULIA\_DEBUG Usage

**URL:** <https://discourse.julialang.org/t/julia-debug-usage/85743>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 14, 2022, 8:15pm UTC](https://discourse.julialang.org/t/julia-debug-usage/85743 "2022-08-14T20:15:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cadojo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cadojo/32/25328_2.png) [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Post date:** [August 14, 2022, 8:15pm UTC](https://discourse.julialang.org/t/julia-debug-usage/85743/1 "2022-08-14T20:15:40Z")

</div>

How can I set the logging level to Warning or higher with an environment variable? I’ve checked the documentation and other Discourse posts, but I’m still a bit confused.

I have CI which builds documents with [Quarto](https://Quarto.org), and I’m getting `@info` statements from package loading that I don’t want in my document output. I can add a code cell with `Logging.disable_logging(Logging.Info)` in every document, but I’m hoping to do so with `JULIA_DEBUG=1000 julia -e ...` in my CI file. Unfortunately, that’s not working right now.

---

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [August 15, 2022, 4:47am UTC](https://discourse.julialang.org/t/julia-debug-usage/85743/2 "2022-08-15T04:47:27Z")

</div>

`JULIA_DEBUG` is for _enabling_ debug logging in specific files or modules. There doesn’t appear to be an environment variable for setting the minimum log level.

However, `disable_logging` is global setting, so

```
julia -e 'import Logging; Logging.disable_logging(Logging.Info) -e ...

```

should disable any `@info` messages from this process.
