Fix example for structured logging. (#11946)

The StreamHandler takes a stream parameter, not location.
This commit is contained in:
Brad Jones 2022-02-09 13:56:33 -07:00 committed by GitHub
parent 0408d694ee
commit 3914576b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/11946.doc Normal file
View File

@ -0,0 +1 @@
Correct the structured logging configuration example. Contributed by Brad Jones.

View File

@ -141,7 +141,7 @@ formatters:
handlers: handlers:
console: console:
class: logging.StreamHandler class: logging.StreamHandler
location: ext://sys.stdout stream: ext://sys.stdout
file: file:
class: logging.FileHandler class: logging.FileHandler
formatter: json formatter: json