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

docs: Added documentation for Django/Flask integrations and dictConfig #848

Merged
merged 7 commits into from
Feb 14, 2024
Prev Previous commit
Next Next commit
🦉 Updates from OwlBot post-processor
  • Loading branch information
gcf-owl-bot[bot] committed Feb 1, 2024
commit f73fcf74e0c6bbcfd29ffd94c08090cbe6a7d441
21 changes: 6 additions & 15 deletions samples/snippets/usage_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,26 +494,17 @@ def dict_config(client):
"handlers": {
"cloud_logging": {
"class": "google.cloud.logging.handlers.CloudLoggingHandler",
"client": client
"client": client,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe the client setup should be part of the sample?

},
"structured_log": {
"class": "google.cloud.logging.handlers.StructuredLogHandler"
}
},
"root": {
"handlers": ["console"],
"level": "WARNING"
},
},
"root": {"handlers": ["console"], "level": "WARNING"},
"loggers": {
"my_logger": {
"handlers": ["cloud_logging"],
"level": "INFO"
},
"my_other_logger": {
"handlers": ["structured_log"],
"level": "INFO"
}
}
"my_logger": {"handlers": ["cloud_logging"], "level": "INFO"},
"my_other_logger": {"handlers": ["structured_log"], "level": "INFO"},
},
}
# [END dict_config]

Expand Down