# Logging issue in Ray

**URL:** <https://discuss.ray.io/t/logging-issue-in-ray/14255>\
**Category:** Ray Core\
**Created:** [April 2, 2024, 11:00am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255 "2024-04-02T11:00:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BalajiSelvaraj10](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/balajiselvaraj10/32/2247_2.png) [@BalajiSelvaraj10](https://discuss.ray.io/u/BalajiSelvaraj10)\
**Post date:** [April 2, 2024, 11:00am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/1 "2024-04-02T11:00:56Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Ray clear my application’s existing logging config and redefine one from ray/ **init**.py. It cause a huge problem in my end, no logs persisted as our config. How could I resolve this?

Ray version : 2.8.1

TIA,  
@jjyao

---

<div class="post-metadata">

**Author:** ![jjyao](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jjyao/32/1799_2.png) [@jjyao](https://discuss.ray.io/u/jjyao)\
**Post date:** [April 2, 2024, 2:23pm UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/2 "2024-04-02T14:23:26Z")

</div>

@BalajiSelvaraj10 can you try the latest Ray?

[https://github.com/ray-project/ray/pull/36306](https://github.com/ray-project/ray/pull/36306) might fix the issue.

---

<div class="post-metadata">

**Author:** ![BalajiSelvaraj10](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/balajiselvaraj10/32/2247_2.png) [@BalajiSelvaraj10](https://discuss.ray.io/u/BalajiSelvaraj10)\
**Post date:** [April 3, 2024, 6:02am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/3 "2024-04-03T06:02:09Z")

</div>

Hi @jjyao

Mentioned patch was released in Ray 2.6.2

> **[Releases · ray-project/ray](https://github.com/ray-project/ray/releases?page=2)**
>
> Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads. - ray-project/ray

I’m currently using ray 2.8.1. So should I downgrade to older version?

TIA 🙂

---

<div class="post-metadata">

**Author:** ![BalajiSelvaraj10](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/balajiselvaraj10/32/2247_2.png) [@BalajiSelvaraj10](https://discuss.ray.io/u/BalajiSelvaraj10)\
**Post date:** [April 4, 2024, 6:04am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/4 "2024-04-04T06:04:55Z")

</div>

@jjyao can you check this at your free time., It blocks me.

---

<div class="post-metadata">

**Author:** ![BalajiSelvaraj10](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/balajiselvaraj10/32/2247_2.png) [@BalajiSelvaraj10](https://discuss.ray.io/u/BalajiSelvaraj10)\
**Post date:** [April 10, 2024, 9:53am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/5 "2024-04-10T09:53:50Z")

</div>

Hi @jjyao ., Can you check this

TIA

---

<div class="post-metadata">

**Author:** ![jjyao](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jjyao/32/1799_2.png) [@jjyao](https://discuss.ray.io/u/jjyao)\
**Post date:** [April 17, 2024, 5:17am UTC](https://discuss.ray.io/t/logging-issue-in-ray/14255/6 "2024-04-17T05:17:52Z")

</div>

@BalajiSelvaraj10 Sorry for the late reply.

You can upgrade to the latest Ray version. I did the following test and it worked

```auto
Python 3.8.18 (default, Sep 11 2023, 08:17:16)
[Clang 14.0.6] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.basicConfig(format="%(asctime)s %(message)s")
>>> import ray
>>> ray.init()
2024-04-16 22:16:44,816	INFO worker.py:1567 -- Connecting to existing Ray cluster at address: 127.0.0.1:6379...
2024-04-16 22:16:44,824	INFO worker.py:1743 -- Connected to Ray cluster. View the dashboard at http://127.0.0.1:8265
RayContext(dashboard_url='127.0.0.1:8265', python_version='3.8.18', ray_version='3.0.0.dev0', ray_commit='{{RAY_COMMIT_SHA}}')
>>> logger = logging.getLogger( __name__ )
>>> logger.error("Hello")
2024-04-16 22:17:16,094 Hello

```
