Title: Add callback feature to `Start-Transcript` · Issue #17588 · PowerShell/PowerShell · GitHub
Open Graph Title: Add callback feature to `Start-Transcript` · Issue #17588 · PowerShell/PowerShell
X Title: Add callback feature to `Start-Transcript` · Issue #17588 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement Judging from the StackOverflow questions, it appears to me that custom log files implementations are more often used then the native Start-Transcript cmdlet and suspect that this is due to the fac...
Open Graph Description: Summary of the new feature / enhancement Judging from the StackOverflow questions, it appears to me that custom log files implementations are more often used then the native Start-Transcript cmdlet...
X Description: Summary of the new feature / enhancement Judging from the StackOverflow questions, it appears to me that custom log files implementations are more often used then the native Start-Transcript cmdlet...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17588
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add callback feature to `Start-Transcript`","articleBody":"### Summary of the new feature / enhancement\r\n\r\nJudging from the StackOverflow questions, it appears to me that custom log files implementations are more often used then the native [`Start-Transcript`](https://docs.microsoft.com/powershell/module/microsoft.powershell.host/start-transcript) cmdlet and suspect that this is due to the fact enterprise companies (as the one I am working for) want their own logging facilities which might be a specific log format (e.g. including a specific time stamp per entry) up till writing (specific) entries to a database.\r\n\r\n### Proposed technical implementation details (optional)\r\n\r\nA `-Script \u003cScriptBlock>` parameter that refers to a script that is called at each logging event. Within the script (which might need to run in a different scope), I would expect to have access to information (via current item (`$_`)?) as:\r\n- A reference to thr output streams since last event\r\n- The timestamp of the event (basically the current time)\r\n- Transcript properties/parameters (as the `Path` if supplied)\r\n- ...","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2022-06-27T13:43:53Z","url":"https://github.com/PowerShell/PowerShell/issues/17588"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:cca47b20-72ee-65b7-3a9d-b79919f4f35f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3E6:A1D0F:37A008:4CB6AA:6AFD1002 |
| html-safe-nonce | fb3da1cb6536347fe6403f7b26dabcf90d92681519d58c5af5ba6e6283b83fde |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0U2OkExRDBGOjM3QTAwODo0Q0I2QUE6NkFGRDEwMDIiLCJ2aXNpdG9yX2lkIjoiNjkzNTQxMTIzNzQ0MjA5NzE1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 60c6a98693960a1dfed3d2ec46caf1ac780d1d2fc79f1c16d06e88bd1d2c84ea |
| hovercard-subject-tag | issue:1285831337 |
| 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/PowerShell/PowerShell/17588/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4138c9d27f1e0ec8ec5c2c7cbcd61cedbaed27825c623711b47d380ddbf7acc/PowerShell/PowerShell/issues/17588 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4138c9d27f1e0ec8ec5c2c7cbcd61cedbaed27825c623711b47d380ddbf7acc/PowerShell/PowerShell/issues/17588 |
| og:image:alt | Summary of the new feature / enhancement Judging from the StackOverflow questions, it appears to me that custom log files implementations are more often used then the native Start-Transcript cmdlet... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width