René's URL Explorer Experiment


Title: dockerflow.logging.JsonLogFormatter is weird about %s style logging · Issue #29 · mozilla-services/python-dockerflow · GitHub

Open Graph Title: dockerflow.logging.JsonLogFormatter is weird about %s style logging · Issue #29 · mozilla-services/python-dockerflow

X Title: dockerflow.logging.JsonLogFormatter is weird about %s style logging · Issue #29 · mozilla-services/python-dockerflow

Description: I have this config: # Logging LOGGING_USE_JSON = values.BooleanValue(True) LOGGING_DEFAULT_LEVEL = values.Value("INFO") @property def LOGGING(self): return { "version": 1, "disable_existing_loggers": False, "formatters": { "json": { "()"...

Open Graph Description: I have this config: # Logging LOGGING_USE_JSON = values.BooleanValue(True) LOGGING_DEFAULT_LEVEL = values.Value("INFO") @property def LOGGING(self): return { "version": 1, "disable_existing_loggers...

X Description: I have this config: # Logging LOGGING_USE_JSON = values.BooleanValue(True) LOGGING_DEFAULT_LEVEL = values.Value("INFO") @property def LOGGING(self): return { "version": 1, "...

Opengraph URL: https://github.com/mozilla-services/python-dockerflow/issues/29

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dockerflow.logging.JsonLogFormatter is weird about %s style logging","articleBody":"I have this config:\r\n\r\n\r\n```python\r\n    # Logging\r\n    LOGGING_USE_JSON = values.BooleanValue(True)\r\n    LOGGING_DEFAULT_LEVEL = values.Value(\"INFO\")\r\n\r\n    @property\r\n    def LOGGING(self):\r\n        return {\r\n            \"version\": 1,\r\n            \"disable_existing_loggers\": False,\r\n            \"formatters\": {\r\n                \"json\": {\r\n                    \"()\": \"dockerflow.logging.JsonLogFormatter\",\r\n                    \"logger_name\": \"buildhub\",\r\n                },\r\n                \"verbose\": {\"format\": \"%(levelname)s %(asctime)s %(name)s %(message)s\"},\r\n            },\r\n            \"handlers\": {\r\n                \"console\": {\r\n                    \"level\": self.LOGGING_DEFAULT_LEVEL,\r\n                    \"class\": \"logging.StreamHandler\",\r\n                    \"formatter\": (\"json\" if self.LOGGING_USE_JSON else \"verbose\"),\r\n                },\r\n                \"sentry\": {\r\n                    \"level\": \"ERROR\",\r\n                    \"class\": (\r\n                        \"raven.contrib.django.raven_compat.handlers\" \".SentryHandler\"\r\n                    ),\r\n                },\r\n                \"null\": {\"class\": \"logging.NullHandler\"},\r\n            },\r\n            \"root\": {\"level\": \"INFO\", \"handlers\": [\"sentry\", \"console\"]},\r\n\r\n...\r\n\r\n```\r\n\r\nWhen I do:\r\n\r\n```python\r\nIn [1]: import logging\r\n\r\nIn [2]: logger = logging.getLogger(\"myproject\")\r\n\r\nIn [3]: logger.info(\"Hi!\")\r\n{\"Timestamp\": 1541787363833421056, \"Type\": \"myproject\", \"Logger\": \"buildhub\", \"Hostname\": \"MacBook-Pro-131.local\", \"EnvVersion\": \"2.0\", \"Severity\": 6, \"Pid\": 68488, \"Fields\": {\"msg\": \"Hi!\"}}\r\n\r\nIn [4]: logger.info(\"Hi %s\", \"peter\")\r\n{\"Timestamp\": 1541787379742094080, \"Type\": \"myproject\", \"Logger\": \"buildhub\", \"Hostname\": \"MacBook-Pro-131.local\", \"EnvVersion\": \"2.0\", \"Severity\": 6, \"Pid\": 68488, \"Fields\": {\"msg\": \"Hi peter\"}}\r\n\r\nIn [5]: logger.info(\"Hi %s\", {'name': 'Peter'})\r\n{\"Timestamp\": 1541787416647823104, \"Type\": \"myproject\", \"Logger\": \"buildhub\", \"Hostname\": \"MacBook-Pro-131.local\", \"EnvVersion\": \"2.0\", \"Severity\": 6, \"Pid\": 68488, \"Fields\": {}}\r\n\r\n```\r\n\r\nNotice that when the param to `logger.debug(template, THIS)` isn't a string the final \"msg\" becomes empty (`\"Fields\": {}`). ","author":{"url":"https://github.com/peterbe","@type":"Person","name":"peterbe"},"datePublished":"2018-11-09T18:15:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/29/python-dockerflow/issues/29"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2147def-76c6-5b33-11ef-8c0c4a57018b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB88:288F65:136BD06:1C2C530:6A54D70C
html-safe-noncec6d7eed727c57c2048b808f470aa5eceed63610746ac45c375d4eda219960e59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjg4OjI4OEY2NToxMzZCRDA2OjFDMkM1MzA6NkE1NEQ3MEMiLCJ2aXNpdG9yX2lkIjoiNzU0NTQ0ODM4MTkwMjI4MDQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca5f54e8aaaf5a97dffa6b633fce50fa4a13727f7889ab1fb41320102b1c66487
hovercard-subject-tagissue:379268281
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mozilla-services/python-dockerflow/29/issue_layout
twitter:imagehttps://opengraph.githubassets.com/81c74e55e2960c2af6ddbd8c05f328f1174d4aea6e567593d42e9e11ab54b2cb/mozilla-services/python-dockerflow/issues/29
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/81c74e55e2960c2af6ddbd8c05f328f1174d4aea6e567593d42e9e11ab54b2cb/mozilla-services/python-dockerflow/issues/29
og:image:altI have this config: # Logging LOGGING_USE_JSON = values.BooleanValue(True) LOGGING_DEFAULT_LEVEL = values.Value("INFO") @property def LOGGING(self): return { "version": 1, "disable_existing_loggers...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepeterbe
hostnamegithub.com
expected-hostnamegithub.com
Nonea556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54
turbo-cache-controlno-preview
go-importgithub.com/mozilla-services/python-dockerflow git https://github.com/mozilla-services/python-dockerflow.git
octolytics-dimension-user_id1066228
octolytics-dimension-user_loginmozilla-services
octolytics-dimension-repository_id73705921
octolytics-dimension-repository_nwomozilla-services/python-dockerflow
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id73705921
octolytics-dimension-repository_network_root_nwomozilla-services/python-dockerflow
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release840b5d20d5a883c23cf56f5240b2c343d6cc0867
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/mozilla-services/python-dockerflow/issues/29#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmozilla-services%2Fpython-dockerflow%2Fissues%2F29
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmozilla-services%2Fpython-dockerflow%2Fissues%2F29
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=mozilla-services%2Fpython-dockerflow
Reloadhttps://github.com/mozilla-services/python-dockerflow/issues/29
Reloadhttps://github.com/mozilla-services/python-dockerflow/issues/29
Reloadhttps://github.com/mozilla-services/python-dockerflow/issues/29
Please reload this pagehttps://github.com/mozilla-services/python-dockerflow/issues/29
mozilla-services https://github.com/mozilla-services
python-dockerflowhttps://github.com/mozilla-services/python-dockerflow
Notifications https://github.com/login?return_to=%2Fmozilla-services%2Fpython-dockerflow
Fork 21 https://github.com/login?return_to=%2Fmozilla-services%2Fpython-dockerflow
Star 40 https://github.com/login?return_to=%2Fmozilla-services%2Fpython-dockerflow
Code https://github.com/mozilla-services/python-dockerflow
Issues 13 https://github.com/mozilla-services/python-dockerflow/issues
Pull requests 0 https://github.com/mozilla-services/python-dockerflow/pulls
Actions https://github.com/mozilla-services/python-dockerflow/actions
Projects https://github.com/mozilla-services/python-dockerflow/projects
Security and quality 0 https://github.com/mozilla-services/python-dockerflow/security
Insights https://github.com/mozilla-services/python-dockerflow/pulse
Code https://github.com/mozilla-services/python-dockerflow
Issues https://github.com/mozilla-services/python-dockerflow/issues
Pull requests https://github.com/mozilla-services/python-dockerflow/pulls
Actions https://github.com/mozilla-services/python-dockerflow/actions
Projects https://github.com/mozilla-services/python-dockerflow/projects
Security and quality https://github.com/mozilla-services/python-dockerflow/security
Insights https://github.com/mozilla-services/python-dockerflow/pulse
dockerflow.logging.JsonLogFormatter is weird about %s style logginghttps://github.com/mozilla-services/python-dockerflow/issues/29#top
https://github.com/peterbe
peterbehttps://github.com/peterbe
on Nov 9, 2018https://github.com/mozilla-services/python-dockerflow/issues/29#issue-379268281
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.