Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: emit Docker and Shell logging to ProgressListener #221

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

HBobertz
Copy link
Contributor

@HBobertz HBobertz commented Dec 3, 2024

Related to #196

There is still a quiet flag however I will do that in another pr.

This change adds a new GlobalOutputHandler which as the name implies, is a global object which will send messages to the progress listener. If invoked from the CLI, the CLI first configures the progress as a ConsoleProgress() listener which prints to stderr by default. If invoked from AssetPublishing (the class which we programmatically interact with from the aws-cdk), then the globalOutputHandler will instead push the messages to the progress listener defined in that class.

@HBobertz HBobertz marked this pull request as ready for review December 8, 2024 22:14
lib/progress.ts Outdated Show resolved Hide resolved
test/mock-child_process.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

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

Please describe what this PR is addressing and how its solving it. If there are follow-up PRs, describe in a bit more detail how they will address it.

Please describe how you've verified the changes.

test/mock-child_process.ts Outdated Show resolved Hide resolved
bin/logging.ts Outdated Show resolved Hide resolved
bin/logging.ts Outdated Show resolved Hide resolved
@mrgrain
Copy link
Contributor

mrgrain commented Dec 10, 2024

Fixes #196

BTW, if it doesn't close the issue, e.g. because a second PR is needed, you cannot put that in like that.

@HBobertz HBobertz changed the title chore: Modify logging to ensure docker and shell logging is properly emitted to pluggble log publisher chore: Ensure docker and shell logging is properly emitted to log publisher Dec 13, 2024
@HBobertz HBobertz changed the title chore: Ensure docker and shell logging is properly emitted to log publisher chore: Emit Docker and Shell logging to ProgressListener Dec 13, 2024
@HBobertz HBobertz changed the title chore: Emit Docker and Shell logging to ProgressListener chore: emit Docker and Shell logging to ProgressListener Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants