Skip to content

Commit

Permalink
docs: Update configuration documentation (#601)
Browse files Browse the repository at this point in the history
Update the structlog configure call in the configuration documentation
to use an instance of LoggerFactory instead of the class definition.
  • Loading branch information
BradleyKirton authored Feb 28, 2024
1 parent 186d2ea commit 555c387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ At any time, you can check whether and how *structlog* is configured using {func
```pycon
>>> structlog.is_configured()
False
>>> structlog.configure(logger_factory=structlog.stdlib.LoggerFactory)
>>> structlog.configure(logger_factory=structlog.stdlib.LoggerFactory())
>>> structlog.is_configured()
True
>>> cfg = structlog.get_config()
Expand Down

0 comments on commit 555c387

Please sign in to comment.