python-useful-helpers / logwrap

logwrap is a helper for logging in human-readable format function arguments and call result on function call
Apache License 2.0
12 stars 3 forks source link

Truncation of large objects #79

Open vadim0x60 opened 1 year ago

vadim0x60 commented 1 year ago

Thanks for the library! One problem I tend to have with it is that sometimes a function argument will be something very large, like a list of 1000s of strings, and it would still be nice to log this function call with logwrap, but it just clutters the log. I think a nice solution would be to add a max_iterable_length parameter similar to the max_indent parameter we already have.

penguinolog commented 1 month ago

released as 11.1.0