Skip to content

Commit baca7fb

Browse files
committed
Add logging examples in the docs.
1 parent 184fc6c commit baca7fb

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Powered By [<img src="https://arrow.apache.org/img/arrow.png" width="200">](http
2828
- [Quick Start](#quick-start)
2929
- [Read The Docs](#read-the-docs)
3030
- [Community Resources](#community-resources)
31+
- [Logging](#logging)
3132
- [Who uses AWS Data Wrangler?](#who-uses-aws-data-wrangler)
3233
- [Amazon SageMaker Data Wrangler?](#amazon-sageMaker-data-wrangler)
3334

@@ -152,6 +153,24 @@ Please [send a Pull Request](https://github.com/awslabs/aws-data-wrangler/edit/m
152153
- [Getting started on AWS Data Wrangler and Athena](https://medium.com/@dheerajsharmainampudi/getting-started-on-aws-data-wrangler-and-athena-7b446c834076) [[@dheerajsharma21](https://github.com/dheerajsharma21)]
153154
- [Simplifying Pandas integration with AWS data related services](https://medium.com/@bv_subhash/aws-data-wrangler-simplifying-pandas-integration-with-aws-data-related-services-2b3325c12188) [[@bvsubhash](https://github.com/bvsubhash)]
154155

156+
## Logging
157+
158+
Enabling internal logging examples:
159+
160+
```py3
161+
import logging
162+
logging.basicConfig(level=logging.INFO, format="[%(name)s][%(funcName)s] %(message)s")
163+
logging.getLogger("awswrangler").setLevel(logging.DEBUG)
164+
logging.getLogger("botocore.credentials").setLevel(logging.CRITICAL)
165+
```
166+
167+
Into AWS lambda:
168+
169+
```py3
170+
import logging
171+
logging.getLogger("awswrangler").setLevel(logging.DEBUG)
172+
```
173+
155174
## Who uses AWS Data Wrangler?
156175

157176
Knowing which companies are using this library is important to help prioritize the project internally.

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Read The Docs
6464
Tutorials <https://github.com/awslabs/aws-data-wrangler/tree/master/tutorials>
6565
api
6666
Community Resources <https://github.com/awslabs/aws-data-wrangler#community-resources>
67+
Logging <https://github.com/awslabs/aws-data-wrangler#logging>
6768
Who uses AWS Data Wrangler? <https://github.com/awslabs/aws-data-wrangler#who-uses-aws-data-wrangler>
6869
License <https://github.com/awslabs/aws-data-wrangler/blob/master/LICENSE.txt>
6970
Contributing <https://github.com/awslabs/aws-data-wrangler/blob/master/CONTRIBUTING.md>

0 commit comments

Comments
 (0)