File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ output logs as JSON with a bit of effort.
146
146
147
147
First, we need a :class: `~logging.Formatter ` that renders JSON:
148
148
149
- .. literalinclude :: ../../example/logging /json_log_formatter.py
149
+ .. literalinclude :: ../../experiments /json_log_formatter.py
150
150
151
151
Then, we configure logging to apply this formatter::
152
152
Original file line number Diff line number Diff line change @@ -73,11 +73,11 @@ first argument to declare which URL patterns map to which handlers. Review the
73
73
documentation of :mod: `werkzeug.routing ` to learn about its functionality.
74
74
75
75
To give you a sense of what's possible, here's the URL map of the example in
76
- `example /routing.py `_:
76
+ `experiments /routing.py `_:
77
77
78
- .. _ example /routing.py : https://github.com/python-websockets/websockets/blob/main/example /routing.py
78
+ .. _ experiments /routing.py : https://github.com/python-websockets/websockets/blob/main/experiments /routing.py
79
79
80
- .. literalinclude :: ../../example /routing.py
80
+ .. literalinclude :: ../../experiments /routing.py
81
81
:language: python
82
82
:start-at: url_map = Map(
83
83
:end-at: await server.serve_forever()
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments