Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the intend behind this changes. I do not want us to do specialized changes. This data collection needs to be generic enough so we can specialize data processing after log collection. So please refrain from doing it if you do not have strong reason for the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats not the problem with this change.
The way these cmds-to-log are handled is that we take the native object output and do two things:
If there's a desire for another output form to be available by default, I'd suggest either fc or fl, i.e.
$cmdoutput | fc * > cmd.fc.txt
$cmdoutput | fl * > cmd.fc.txt
The problem is that there is a degree of personal preference to these, and rendering these 10x different ways is inefficient. However, there may be some merit to choosing one to make available to point-and-click open, rather than requiring import-clixml | <some preferred/programmatic rendering>.
The reason the default .txt render is useful is that thats the only way to access the cmdlet author's preference. This would be an and-another, not replacement of it.