# Ray logs - log.debug and log.info don't display

**URL:** <https://discuss.ray.io/t/ray-logs-log-debug-and-log-info-dont-display/5443>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [March 17, 2022, 6:46pm UTC](https://discuss.ray.io/t/ray-logs-log-debug-and-log-info-dont-display/5443 "2022-03-17T18:46:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kordi1818](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/kordi1818/32/2294_2.png) [@Kordi1818](https://discuss.ray.io/u/Kordi1818)\
**Post date:** [March 17, 2022, 6:46pm UTC](https://discuss.ray.io/t/ray-logs-log-debug-and-log-info-dont-display/5443/1 "2022-03-17T18:46:45Z")

</div>

Hi guys!

I’m trying to get all detailed logs from a ray task. Here is a simple example of my code:

```auto
 import ray
 import logging
  
 # Start Ray.
 ray.init()
  
  
 @ray.remote
 def f():
   log = logging.getLogger()
   log.setLevel(logging.DEBUG)
   log.debug("MY DEBUG STH")
   log.info("MY INFO STH")
   log.warning("MY WARNING STH")
   log.error("MY ERROR STH")
  
 ray.get(f.remote())

```

Here is the outcome:

```auto
(f pid=73317) MY WARNING STH
(f pid=73317) MY ERROR STH

```

Do you know what might be the reason of not getting logs for logs for `log.debug` and `log.info` ?

---

<div class="post-metadata">

**Author:** ![Stephanie\_Wang](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/stephanie_wang/32/18_2.png) [@Stephanie\_Wang](https://discuss.ray.io/u/Stephanie_Wang)\
**Post date:** [March 18, 2022, 6:41pm UTC](https://discuss.ray.io/t/ray-logs-log-debug-and-log-info-dont-display/5443/2 "2022-03-18T18:41:47Z")

</div>

> [@Kordi1818](#):
>
> ```auto
> import ray
> import logging
>   
> # Start Ray.
> ray.init()
>   
>   
> @ray.remote
> def f():
> log = logging.getLogger()
> log.setLevel(logging.DEBUG)
> log.debug("MY DEBUG STH")
> log.info("MY INFO STH")
> log.warning("MY WARNING STH")
> log.error("MY ERROR STH")
>   
> ray.get(f.remote())
> 
> ```

I think this is actually an issue with usage of the `logging` package.

Try this (adapted from [stackoverflow](https://stackoverflow.com/questions/43109355/logging-setlevel-is-being-ignored)):

```python
logging.basicConfig(level=logging.DEBUG, format='%(message)s')

```
