Comments (2)
@GeorgePearse I use ic
with the logging module like this:
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.
from icecream.
So how about a debug=True prints message and debug=False does not?
from icecream.
Related Issues (20)
- icecream does not work with pytest (Failed to access the underlying source code for analysis) HOT 1
- Colorize context: highlight file name, line number and function name with different colors
- Disable/Delete line wrap HOT 1
- How to format floats in a nested dictionary?
- sdist is missing tox.ini
- how to use formatting options on the output printed by ```ic```? HOT 3
- 2.1.3: pytest is failing in two nits HOT 1
- How to only print what is in the parentheses? HOT 2
- from icecream import ic as print
- ic does not show funtion name, *args or **kwargs inside a wrapper HOT 3
- improve string output with long strings HOT 1
- Add option to change or disable colors HOT 6
- ic| Error: Failed to access the underlying source code for analysis. HOT 6
- icecream and python HOT 1
- Getting error everytime HOT 1
- Icecream Python 3.9.12 Pyinstaller HOT 1
- How safe is this module? HOT 1
- AttributeError every time
- First call to ic() can take significant amounts of time in Pygame games, especially in debug mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icecream.