Skip to content

Commit 5b9f621

Browse files
committed
remove need for special logging process
1 parent 6d9e606 commit 5b9f621

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,6 @@ def bar():
7070
return "Hello World"
7171
```
7272

73-
## See Server Function Logs
74-
75-
In order to see function logs, please first set `logsEnabled` to `true` in Canopy for the function.
76-
77-
https://na1.polyapi.io/canopy/polyui/collections/server-functions
78-
79-
Then in your code, get the poly logger and log with it like so:
80-
81-
```python
82-
logger = logging.getLogger("poly")
83-
def bar():
84-
logger.warning("I AM THE LOG")
85-
return "Hello World"
86-
```
87-
88-
Finally, click the "Show Logs" button to see your server function logs in Canopy!
89-
90-
9173
## Complex Types In Server Functions
9274

9375
You can define arbitrarily complex argument and return types using TypedDicts.

0 commit comments

Comments
 (0)