cool-RR / PySnooper

Never use print for debugging again
MIT License
16.31k stars 954 forks source link

Output to logging #224

Closed EmanueleCannizzaro closed 2 years ago

EmanueleCannizzaro commented 2 years ago

Thank you for this very useful tool. Is it possible to write the output to logging warn or info functions?

cool-RR commented 2 years ago

I believe you can pass any callable as the first argument to snoop and it'll use that.