micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

Logging improvements

Open alonbl opened this issue 7 months ago • 5 comments

logging: Support extra context for LogRecord.

Extra context is usable to enrich log record with concrete context additions.


logging: move exc_info to common log.

The keyword parameters are populated to common log and exc_info should be common to all methods anyway.

This change the default to be exc_info=False for all cases similar to the standard python.

alonbl avatar Apr 30 '25 15:04 alonbl

Anyone?

alonbl avatar Jul 05 '25 23:07 alonbl

Did you see my review comments?

Josverl avatar Jul 06 '25 12:07 Josverl

Did you see my review comments?

Hi @Josverl ,

I do not see any comment made by anyone else but me in this ticket.

I would love to review any comment, can you please refer me where?

Thanks, Alon

alonbl avatar Jul 06 '25 12:07 alonbl

Hi Alon, I resubmitted my review and this time it shows up. In addition, I think it would be helpful to add an example of how to add such context.

Josverl avatar Oct 23 '25 19:10 Josverl

Hi Alon, I resubmitted my review and this time it shows up. In addition, I think it would be helpful to add an example of how to add such context.

Thanks! I will create an example.

alonbl avatar Oct 23 '25 20:10 alonbl