How to change the logging path?

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

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

Thanks a lot.

Check it out here: Ray Core API — Ray 2.2.0

_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.

1 Like

will follow up with the doc change