Skip to content

Commit 9ba3ffc

Browse files
kbakkheitorlessa
andauthored
Write Powertools with Capitalization
Co-authored-by: Heitor Lessa <[email protected]>
1 parent 7505fcb commit 9ba3ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/logger.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ By default all registered loggers will be modified. You can change this behavior
606606

607607
**How can I add standard library logging attributes to a log record?**
608608

609-
The Python standard library log records contains a [large set of atttributes](https://docs.python.org/3/library/logging.html#logrecord-attributes), however only a few are included in the powertools log record by default.
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.
610610

611611
If you need to add additional records, these can be included as `kwargs` to `Logger`, or to `LambdaPowertoolsFormatter` when they are being instantiated, or to managed later with the `append_keys` or `remove_keys` methods.
612612

@@ -621,7 +621,7 @@ If you need to add additional records, these can be included as `kwargs` to `Log
621621
---8<-- "examples/logger/src/append_and_remove_keys.json"
622622
```
623623

624-
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`).
624+
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`).
625625

626626
**What's the difference between `append_keys` and `extra`?**
627627

0 commit comments

Comments
 (0)