You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gruns: First of all, thank you for writing and maintaining ic. It is one of the best utilities I have a come across :-)
I wanted to add more detailed logging to ic, hit some snags (--I don't understand enough about call stacks--), but finally found an easy solution.
I defined functions icd (for DEBUG), ici (INFO), icw (WARNING), ice (ERROR) and ic (CRITICAL) based on Python's logging module and ic.
You call them just like you would call ic. They add a time stamp and the logging level to ic's output, and duplicate the output to a log file.
In case someone would like to use them, they can be found at https://github.com/kscaec/ks_util . (I am a novice GitHub user, so let me know if there is an issue.)
A word of caution: I do not plan on evolving these functions going forward. I am not professional enough as a developer to embark on this.
@gruns: If you find my logging variants of ic() of interest, feel free to re-use them and integrate them into icecream. (Or not, of course ;-)
The text was updated successfully, but these errors were encountered:
@gruns: First of all, thank you for writing and maintaining ic. It is one of the best utilities I have a come across :-)
I wanted to add more detailed logging to ic, hit some snags (--I don't understand enough about call stacks--), but finally found an easy solution.
I defined functions icd (for DEBUG), ici (INFO), icw (WARNING), ice (ERROR) and ic (CRITICAL) based on Python's logging module and ic.
You call them just like you would call ic. They add a time stamp and the logging level to ic's output, and duplicate the output to a log file.
In case someone would like to use them, they can be found at https://github.com/kscaec/ks_util . (I am a novice GitHub user, so let me know if there is an issue.)
@gruns: If you find my logging variants of ic() of interest, feel free to re-use them and integrate them into icecream. (Or not, of course ;-)
The text was updated successfully, but these errors were encountered: