Title: Introduce logging framework/library · Issue #4 · microsoft/FeatureManagement-JavaScript · GitHub
Open Graph Title: Introduce logging framework/library · Issue #4 · microsoft/FeatureManagement-JavaScript
X Title: Introduce logging framework/library · Issue #4 · microsoft/FeatureManagement-JavaScript
Description: The vanilla console.log/warn/error is convenient, and works on both client-side (browser) and server-side(e.g. nodejs) apps. But it only prints to stdout/stderr. Popular logging frameworks like winston is powerful, providing different lo...
Open Graph Description: The vanilla console.log/warn/error is convenient, and works on both client-side (browser) and server-side(e.g. nodejs) apps. But it only prints to stdout/stderr. Popular logging frameworks like win...
X Description: The vanilla console.log/warn/error is convenient, and works on both client-side (browser) and server-side(e.g. nodejs) apps. But it only prints to stdout/stderr. Popular logging frameworks like win...
Opengraph URL: https://github.com/microsoft/FeatureManagement-JavaScript/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Introduce logging framework/library","articleBody":"The vanilla console.log/warn/error is convenient, and works on both client-side (browser) and server-side(e.g. nodejs) apps. But it only prints to stdout/stderr.\r\n\r\nPopular logging frameworks like [winston](https://github.com/winstonjs/winston) is powerful, providing different log levels, different format of output (stdout, a file, and a database etc.). But is not directly working on client-side [so far](https://github.com/winstonjs/winston/issues/287), and introduce more dependencies.\r\n\r\nA feasible solution is using a customized logger, and delegate logger.log to console.log or winston based on running environment.","author":{"url":"https://github.com/Eskibear","@type":"Person","name":"Eskibear"},"datePublished":"2024-03-14T08:22:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/FeatureManagement-JavaScript/issues/4"}
| 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:fd2bf6ee-bc6a-c63b-6adf-a1ae53c25a3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97AC:12B606:2BEFD0E:3BA7C98:698DBC20 |
| html-safe-nonce | a93b2e5afe68bd777378f6382bf35498bd99acaf9eab2913aa05e2aff1501baf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0FDOjEyQjYwNjoyQkVGRDBFOjNCQTdDOTg6Njk4REJDMjAiLCJ2aXNpdG9yX2lkIjoiNjM0NzE2NzI5ODE3MjU5OTMyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2748ba0f2a48f89707843b0ccd7c337d4788e810f673274396cf10fb986d0fce |
| hovercard-subject-tag | issue:2185728881 |
| 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/microsoft/FeatureManagement-JavaScript/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da1a92894352f29a8b027a4e1401528b132807e7d5d53b736b2b5d6aa43e2241/microsoft/FeatureManagement-JavaScript/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da1a92894352f29a8b027a4e1401528b132807e7d5d53b736b2b5d6aa43e2241/microsoft/FeatureManagement-JavaScript/issues/4 |
| og:image:alt | The vanilla console.log/warn/error is convenient, and works on both client-side (browser) and server-side(e.g. nodejs) apps. But it only prints to stdout/stderr. Popular logging frameworks like win... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eskibear |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/FeatureManagement-JavaScript git https://github.com/microsoft/FeatureManagement-JavaScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 738639264 |
| octolytics-dimension-repository_nwo | microsoft/FeatureManagement-JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 738639264 |
| octolytics-dimension-repository_network_root_nwo | microsoft/FeatureManagement-JavaScript |
| 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 | 878672b82363fd98fbdc5bd0edb68e572c8a8d9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width