Title: Establish a standard logging format through this library, with the ability to customize · Issue #113 · mozilla-services/python-dockerflow · GitHub
Open Graph Title: Establish a standard logging format through this library, with the ability to customize · Issue #113 · mozilla-services/python-dockerflow
X Title: Establish a standard logging format through this library, with the ability to customize · Issue #113 · mozilla-services/python-dockerflow
Description: Though we want to add the ability to emit logs in the format that's most useful for engineers (see #111), we also want to promote a standard logging format to reduce the cognitive overhead of switching between projects and provide the ab...
Open Graph Description: Though we want to add the ability to emit logs in the format that's most useful for engineers (see #111), we also want to promote a standard logging format to reduce the cognitive overhead of switc...
X Description: Though we want to add the ability to emit logs in the format that's most useful for engineers (see #111), we also want to promote a standard logging format to reduce the cognitive overhead of s...
Opengraph URL: https://github.com/mozilla-services/python-dockerflow/issues/113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Establish a standard logging format through this library, with the ability to customize","articleBody":"Though we want to add the ability to emit logs in the format that's most useful for engineers (see #111), we also want to promote a standard logging format to reduce the cognitive overhead of switching between projects and provide the ability to more-easily search for logs that span multiple services.\r\n\r\nThe idea would be that instead of encouraging engineers to reference a format-specific class in their logging configuration (e.g. `dockerflow.logging.MozlogHandler` or `google.cloud.logging.handlers.StructuredLogHandler`), we can establish a generic class name like:\r\n\r\n```python\r\n'console': {\r\n 'class': 'dockerflow.logging.DefaultHandler', #real name tbd\r\n},\r\n```\r\nwith some sort of ability to configure the class through an environment variable, like:\r\n\r\n```python\r\nos.getenv(\"DOCKERFLOW_LOGGING_FORMAT\", \"MOZLOG\")\r\n```\r\n\r\nWith this setup, engineers have the freedom to:\r\n- accept the default format of `DefaultHandler` as the \"current logging format standard of Mozilla\".\r\n - maintainers of this library can change the format of `DefaultHandler` in accordance with the current logging standard of Mozilla, and if engineers only care about aligning with Mozilla's standard logging format, they'll automatically be compliant with the standard when they update this library\r\n- override the standard format to another commonly used format through environment configuration, like \r\n```shell\r\nexport DOCKERFLOW_LOGGING_FORMAT=GCP\r\n```\r\n- still (of course) have the ability to fully customize their logging setup by referencing specific logging handlers, formatters, and filters","author":{"url":"https://github.com/grahamalama","@type":"Person","name":"grahamalama"},"datePublished":"2024-04-23T16:45:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/113/python-dockerflow/issues/113"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8147d91-e08b-a9e0-fa76-8f90d9633427 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A14A:3F2796:BE86BD:10140CF:6A56FD8E |
| html-safe-nonce | a4c6471ecef9bbf10e7c92a1da1f02eff47079837b5a759b2b75b613d0a4582d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTRBOjNGMjc5NjpCRTg2QkQ6MTAxNDBDRjo2QTU2RkQ4RSIsInZpc2l0b3JfaWQiOiI0OTAzMjg1MDkyNzA5MTY0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d9e869ee80ef9f40885a71dbfcce2adca1638f69b948e449c86c874dd9251330 |
| hovercard-subject-tag | issue:2259322437 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mozilla-services/python-dockerflow/113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b33134efe0e5cd7cbdbe56be83743884e0cb6f8169ae1a88c2c2f1b7f2335908/mozilla-services/python-dockerflow/issues/113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b33134efe0e5cd7cbdbe56be83743884e0cb6f8169ae1a88c2c2f1b7f2335908/mozilla-services/python-dockerflow/issues/113 |
| og:image:alt | Though we want to add the ability to emit logs in the format that's most useful for engineers (see #111), we also want to promote a standard logging format to reduce the cognitive overhead of switc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | grahamalama |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb29e5f807bd95e41196adfbc6d28f9af12d89830d8b684f3e871774ddff2fc |
| turbo-cache-control | no-preview |
| go-import | github.com/mozilla-services/python-dockerflow git https://github.com/mozilla-services/python-dockerflow.git |
| octolytics-dimension-user_id | 1066228 |
| octolytics-dimension-user_login | mozilla-services |
| octolytics-dimension-repository_id | 73705921 |
| octolytics-dimension-repository_nwo | mozilla-services/python-dockerflow |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 73705921 |
| octolytics-dimension-repository_network_root_nwo | mozilla-services/python-dockerflow |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b056788a129fb0194b61f2ebb4c43f6a9f4dfd27 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width