# How to change the logging path?

**URL:** https://discuss.ray.io/t/how-to-change-the-logging-path/8817
**Category:** Dashboard, Monitoring & Debugging
**Created:** [December 30, 2022, 3:00am UTC](https://discuss.ray.io/t/how-to-change-the-logging-path/8817 "2022-12-30T03:00:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![randall](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@randall](https://discuss.ray.io/u/randall)
#### Post date: [December 30, 2022, 3:00am UTC](https://discuss.ray.io/t/how-to-change-the-logging-path/8817/1 "2022-12-30T03:00:13Z")

</div>

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

- Medium: It contributes to significant difficulty to complete my task, but I can work around it.

In docs, it suggests user to change the logging path by:

> The default temp directory is `/tmp/ray` (for Linux and Mac OS). If you’d like to change the temp directory, you can specify it when `ray start` or `ray.init()` is called.

[https://docs.ray.io/en/latest/ray-observability/ray-logging.html#logging-directory-structure](https://docs.ray.io/en/latest/ray-observability/ray-logging.html#logging-directory-structure)

But I still don’t know how to change it, which parameter should I assign the new path to?

Thanks a lot.

---

<div class="post-metadata">

### Author: ![Huaiwei\_Sun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/huaiwei_sun/32/1316_2.png) [@Huaiwei\_Sun](https://discuss.ray.io/u/Huaiwei_Sun)
#### Post date: [December 30, 2022, 4:07am UTC](https://discuss.ray.io/t/how-to-change-the-logging-path/8817/2 "2022-12-30T04:07:39Z")

</div>

Check it out here: [Ray Core API — Ray 2.8.0](https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-init)

> **\_temp\_dir** – If provided, specifies the root temporary directory for the Ray process. Defaults to an OS-specific conventional location, e.g., “/tmp/ray”.

cc: @sangcho shall we update the documentation to make it clearer.

---

<div class="post-metadata">

### Author: ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)
#### Post date: [January 6, 2023, 2:01am UTC](https://discuss.ray.io/t/how-to-change-the-logging-path/8817/3 "2023-01-06T02:01:13Z")

</div>

will follow up with the doc change
