-
Notifications
You must be signed in to change notification settings - Fork 2
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
All CDK-Assets logging needs to be pluggable #196
Comments
Are you sure we need this? The /**
* Listener for progress events
*
* @default No listener
*/
readonly progressListener?: IPublishProgressListener; That is used by the CDK CLI. CDK CLI funnels log events to the regular CDK CLI logger. |
Great find! In that case we just need to make sure this is used everywhere. I came across the Docker asset building implementation which is not using the logger at the moment: cdk-assets/lib/private/shell.ts Line 38 in 79c76a7
|
I was discussing this with @HBobertz today, and we're not quite sure what the best solution is here. This is for build output that is intended primarily for a human's eyeballs, not for a program. Of course, in an IDE context or whatever, we would want to capture it so we can send it somewhere else. Buffering What do you think of the following approach:
|
Currently
cdk-assets
writes logs directly to stdout and stderr. It also uses a booleanquiet
flag to decide if output is printed or not.quiet
should be mapped to a log levelThe text was updated successfully, but these errors were encountered: