How to override ray's automatic prefixing of logs from remote actors and tasks

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.

Is there a way to manually override Ray automatically prefixing logs from remote tasks and actors? For example, my logs look something like
^[[36m{Class/Task name} pid=12447)^[[0m {original_log}. I know with actors, we can use __repr__ to override the class name, but the pid still shows, as well as the weird ‘^[[36m’ and ‘^[[0m’. I’d prefer to be able to either show nothing, or be able to override the entire prefix manually (for example, I don’t care about showing the pid).

Hi @Jihan we do have some way to tweak the log. Here is the page which you might be interested in Configuring Logging — Ray 2.9.3