Skip to content

[log files readability] Disable any tqdm/tqdm_ray by default (set enable_progress_bar: False by default), as progress bar leads to unreadable log files without new lines and disable any coloring / text styles in Ray logging format when sinking to files #167

@vadimkantorov

Description

@vadimkantorov

Even from ray.experimental.tqdm_ray import tqdm leads to hard to process logs with some ANSI control sequences (maybe text colors, bold/dim or maybe \rs as well) and no newlines when simply redirected to file

Is it possible to make tqdm or DummyProgressBar produce simply regular lines, without plenty of spaces or \rs or fancy control sequences (or any <?, ?it/s any other ANSI control sequence text color/text style stuff - even simple ${it} / ${total} every interval steps would do. We'd mostly like to work with logs sinked to files, so fancy coloring actually hurts) so that the log can be viewable in vim?

Image Image

How can one make Trinity logs look normal with new lines? (might boil down to some ray logging configuration - https://docs.ray.io/en/latest/ray-observability/user-guides/configure-logging.html which looks extremely complicated)?

How do I correctly set up sinking logs to files?

Thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions