sometimes I log big data and sometimes I don't. If the message is large, I want to crop it, but know how much I cropped it.
I want something like this:
big_data = [1, 2, 3, ... 100]
logger.info(f"Received data: {big_data})
Logging data:
11:20 INFO: Received data: [1, 2, 3, ... (another 100 symbols)
I can do it manually, but I would like to have a standard solution either at the logger setup level or at the info
, erro
etc method call level.