Disable logging in all except one worker

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

  • Low: It annoys or frustrates me for a moment.

Is it possible to disable logging for all workers except one? There’s log_to_driver boolean in ray.init() but that seems to be applied to all workers.

Perhaps there’s a way to instantiate logger object in worker class myself? That way I can attach a filter to the logging object and filter based on worker ID or something?

Here is the proposed Worker setup hook API in 2.5 for setting up logger across all workers.

Please leave your feedback

This is great. I’ll take a look. Is there a rough ETA for 2.5?

Not sure yet . Probably in 2-3 weeks

1 Like