Reputation: 6841
The default logging level of Ray Core, when started with the CLI ray start
command is "info", which way is too verbose for prolonged use.
So the question is how to switch Ray logger to a less verbose level?
More info
Logging level controls are not documented in the CLI (as seen from ray start --help
), but the python API (the ray.init()
method) has such a parameter (logging_level
).
I have already established that the logging levels available (at least for the python client) are defined in the ray_constants.py module:
LOGGER_LEVEL_CHOICES = ["debug", "info", "warning", "error", "critical"] .
Note that logging does take place even when Ray was started from the CLI (not only with the python client).
Upvotes: 1
Views: 1595
Reputation: 254
To clarify, do you mean the logging level for the C++ backend, or the logging level for Python applications?
For the former, you can use the environment variable RAY_BACKEND_LOG_LEVEL
, documented here.
For the latter, you should be able to use the logging configuration passed to ray.init
to control the logging level per application. Let me know if this doesn't work for you. Here is the documentation and a code snippet:
ray.init(
configure_logging=True,
logging_level=logging.INFO,
)
Upvotes: 2