Skip to content

Commit f2a24d2

Browse files
kbakkheitorlessa
andcommitted
docs(logger): write Powertools with Capitalization
Co-authored-by: Heitor Lessa <[email protected]>
1 parent 7505fcb commit f2a24d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/core/logger.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ for the given name and level to the logging module. By default, this logs all bo
594594
---8<-- "examples/logger/src/enabling_boto_logging.py"
595595
```
596596

597-
**How can I enable powertools logging for imported libraries?**
597+
**How can I enable Powertools logging for imported libraries?**
598598

599599
You can copy the Logger setup to all or sub-sets of registered external loggers. Use the `copy_config_to_registered_logger` method to do this.
600600

@@ -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)