microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.81k stars 592 forks source link

[rush] Support custom formatting of merged logs #2198

Open dmichon-msft opened 3 years ago

dmichon-msft commented 3 years ago

[rush] Support custom formatting of merged logs

Is this a feature or a bug?

Summary. Depending on the consumer of the logs, there is value to inserting additional text at the collation stage to take advantage of the capabilities of the intended viewer. For example, the Azure DevOps log viewer supports collapsible regions via the ##[group]<summary text> and ##[endgroup] tags. This could be implemented as simply as a configuration option for text to prepend and append to the logs for each project.

elliot-nelson commented 1 year ago

Since we want this feature only in CI, and the easiest way to configure CI environments is using environment variables, I think it makes to sense to use env vars for this. I have a straightforward implementation I'll put up in a PR.