Skip to content

Commit d5ad21c

Browse files
author
Shlomi Kushchi
authored
Merge pull request #290 from alpacahq/define_sdk_logger
Add logging for pacakge
2 parents 7769651 + d6ecb79 commit d5ad21c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,14 @@ same `channel_pat` will overwrite the old handler.
285285
Deregisters the event handler function that was previously registered via `on` or
286286
`register` method.
287287

288-
288+
## Logging
289+
You should define a logger in your app in order to make sure you get all the messages from the different components.<br>
290+
It will help you debug, and make sure you don't miss issues when they occur.<br>
291+
The simplest way to define a logger, if you have no experience with the python logger - will be something like this:
292+
```py
293+
import logging
294+
logging.basicConfig(format='%(asctime)s %(message)s', level=logging.INFO)
295+
```
289296
---
290297
# Polygon API Service
291298

0 commit comments

Comments
 (0)