Skip to content

refactor(@angular-devkit/architect): use custom indent logger #33152

Open
clydin wants to merge 2 commits intoangular:mainfrom
clydin:refactor/custom-logging
Open

refactor(@angular-devkit/architect): use custom indent logger #33152
clydin wants to merge 2 commits intoangular:mainfrom
clydin:refactor/custom-logging

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented May 8, 2026

Replaces createConsoleLogger with a custom logging.IndentLogger implementation to remove dependency on @angular-devkit/core/node helper.

@clydin clydin added the target: major This PR is targeted for the next major release label May 8, 2026
@clydin clydin marked this pull request as ready for review May 8, 2026 15:33
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the use of createConsoleLogger with logging.IndentLogger in both the architect and schematics CLIs. The logging logic is now manually handled via subscriptions, allowing for more direct control over output streams and styling. Additionally, the schematics CLI tests were updated to use PassThrough streams and stripVTControlCharacters for more robust output verification. I have no feedback to provide.

@clydin clydin force-pushed the refactor/custom-logging branch 2 times, most recently from e631835 to ae361e7 Compare May 8, 2026 16:05
clydin added 2 commits May 8, 2026 12:23
Replaces `createConsoleLogger` with a custom `logging.IndentLogger`
implementation to remove dependency on `@angular-devkit/core/node` helper.
…d improve tests

Replaces `createConsoleLogger` with a custom `logging.IndentLogger`
implementation that respects custom output streams.

Also refactors tests to use standard `PassThrough` streams and
`stripVTControlCharacters` instead of custom mocks.
@clydin clydin force-pushed the refactor/custom-logging branch from ae361e7 to 4334bd3 Compare May 8, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant