Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a line to the documentation to further explain the use of logconfig_dict. #2431

Merged
merged 2 commits into from
Feb 16, 2021
Merged

Conversation

Luttik
Copy link
Contributor

@Luttik Luttik commented Oct 5, 2020

The usage of logconifg_dict can be confusing, not only since there is not a clear example on the site now, but also since the documentation of python's dictConfig is minimal. And since you need to know about the specific loggers that gunicorn uses to configure them properly.

@@ -304,6 +304,8 @@ older file configuration format.

Format: https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig

For more context you can look at the default configuration dictionary for logging, which can be found at ``gunicorn.glogging.CONFIG_DEFAULTS``.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. I wonder if there's a way we could actually embed CONFIG_DEFAULTS here as the default value in the documentation, or if we could link to it.

Copy link
Contributor Author

@Luttik Luttik Feb 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. We can of course link to glogging but I don't know if there is any way to auto-link to a variable in the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible to link directly to a linenumber though. But a commit could then break the location. And locking to a commit hash is also not preferable I believe...

@tilgovi tilgovi merged commit 3b8ce3d into benoitc:master Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants