We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I love icecream, but want to leave it in useful positions in my code for debugging, for code that goes into production.
I'd want to use it with the logging module (and prevent those statements from outputting content by setting the logging level).
The text was updated successfully, but these errors were encountered:
So how about a debug=True prints message and debug=False does not?
Sorry, something went wrong.
@GeorgePearse I use ic with the logging module like this:
ic
foo = 'bar' logger.debug(ic.format(foo))
since ic.format() will pass the string output to the logger instead of printing it.
So, this could be easily controlled by the log level.
No branches or pull requests
I love icecream, but want to leave it in useful positions in my code for debugging, for code that goes into production.
I'd want to use it with the logging module (and prevent those statements from outputting content by setting the logging level).
The text was updated successfully, but these errors were encountered: