Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QST] How to change log level in pylibraft #2309

Open
zjoukhadar opened this issue May 14, 2024 · 0 comments
Open

[QST] How to change log level in pylibraft #2309

zjoukhadar opened this issue May 14, 2024 · 0 comments
Labels
question Further information is requested

Comments

@zjoukhadar
Copy link

I'm using the pylibraft library in Python and need to change the logging level from the default INFO to WARN. The C++ documentation states that logging levels can be changed using the set_level() method, as shown below:

raft::logger::get().set_level(RAFT_LEVEL_WARN); // From now onwards, this will print only WARN and above kind of messages

However, I couldn't find a similar method or binding for adjusting the logging level in the pylibraft Python wrapper. Currently, the logging level is set to INFO by default.

How can I change the logging level to WARN in pylibraft when using it in Python? Are there any bindings or workarounds available for this?

Any guidance or examples would be greatly appreciated!

@zjoukhadar zjoukhadar added the question Further information is requested label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant