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
**How can I add standard library logging attributes to a log record?**
607
+
### How can I add standard library logging attributes to a log record?
608
608
609
609
The Python standard library log records contains a [large set of atttributes](https://docs.python.org/3/library/logging.html#logrecord-attributes){target="_blank"}, however only a few are included in Powertools Logger log record by default.
610
610
@@ -625,7 +625,7 @@ You can also add them later anywhere in your code with `append_keys`, or remove
625
625
626
626
For log records originating from Powertools `Logger`, the `name` attribute will be the same as `service`, for log records coming from standard library logger, it will be the name of the logger (i.e. what was used as name argument to `logging.getLogger`).
627
627
628
-
**What's the difference between `append_keys` and `extra`?**
628
+
### What's the difference between `append_keys` and `extra`?
629
629
630
630
Keys added with `append_keys` will persist across multiple log messages while keys added via `extra` will only be available in a given log message operation.
631
631
@@ -643,6 +643,6 @@ Here's an example where we persist `payment_id` not `request_id`. Note that `pay
**How do I aggregate and search Powertools logs across accounts?**
646
+
### How do I aggregate and search Powertools logs across accounts?
647
647
648
648
As of now, ElasticSearch (ELK) or 3rd party solutions are best suited to this task. Please refer to this [discussion for more details](https://github.com/awslabs/aws-lambda-powertools-python/issues/460)
0 commit comments