-
Notifications
You must be signed in to change notification settings - Fork 296
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
Print log output during synthesis #2269
Comments
Indeed we do not currently print |
Interesting. That would be one workaround, however I think it would confuse the users of our CDK construct if the messages appear in the stderr stream. |
I think the problem is that printing to stdout could interfere with synthesis to stdout. |
@pecigonzalo The synthesized output is only printed to stdout only if one explicitly sets the |
@very-doge-wow what I mean is that the reason for printing to This does not mean I don't understand the use-case, but Im explaining why it they might have chosen to not print |
Maybe an additional flag could be provided to change the behavior - by default it would stay as it is now and only if the flag is activated, logoutput is printed? This way no existing integrations could break anywhere. |
Description of the feature or enhancement:
It currently doesn't seem possible to receive any logoutput in stdout while synthesizing the app.
Use Case:
I would like to be able to print different log outputs, so I can tell which branches of my code were executed.
We offer a CDK construct library as well which performs different tasks and generates values for the users.
It would be useful to be able to print information about the actions it has performed to the user, as the construct library
abstracts this away from the view of the user.
Proposed Solution:
If the
--output
flag is not set to print the synthesized output to stdout, provide the messages from console.log, console.warn, etc. through the stdout stream.Other:
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: