# A way to set logging level in Pluto notebooks

**URL:** https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074
**Category:** General Usage
**Tags:** logging, pluto
**Created:** [February 23, 2023, 12:03pm UTC](https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074 "2023-02-23T12:03:24Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![AsgerHB](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asgerhb/32/45064_2.png) [@AsgerHB](https://discourse.julialang.org/u/AsgerHB)
#### Post date: [February 24, 2023, 8:28am UTC](https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074/8 "2023-02-24T08:28:46Z")

</div>

Setting global logging in this way is also very useful. However, it seems that I can’t have both at once.

For some reason, if I set the global logging level as @disberd describes, alternative loggers will stop working:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/4/a47634d46631a1a4327c2b08979845aeed3c9f5e.png)

> **Code for above scrot**
>
> ```
> begin
> using Logging
> Logging.min_enabled_level(::PlutoRunner.PlutoCellLogger) = Logging.Info
> end
> 
> foo()
> 
> debug_logger = SimpleLogger(stdout, Logging.Info)
> 
> with_logger(debug_logger) do
> foo()
> end
> 
> ```

But if I comment out the line that sets global logging, it starts behaving again.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/6/769cd2fa3c4c2feeb4708b4c496e973c5a03adcd.png)

I think for now I will stick to custom logging logic in my code, or alternatively [dump it all to the terminal instead](https://discourse.julialang.org/t/pluto-how-to-redirect-the-logging-message-to-the-terminal/80232).

---

_[View the full topic](https://discourse.julialang.org/t/a-way-to-set-logging-level-in-pluto-notebooks/95074)._
