Open tsuf239 opened 8 months ago
Could you provide more info about this?
I think this is probably due to the fact that you are writing standard logs instead of structured logs.
There are probably two approaches to solve this:
LogEntry
severity to INFO
.I think we already use Winston somewhere, so maybe an alternative could be using @google-cloud/logging-winston npm module.
Yes, the logs are created successfully in the GCP logs console, to display the logs on the user terminal we need to retrieve them somehow and print them- and that's what this issue is about :) please let me know if further information is needed
Adding contributing-experience
label since this will improve the feedback loop for anyone adding resources / capabilities to the GCP target
Feature Spec
When running tf-gcp tests, we can't see the logs we're creating using log.
Use Cases
debugging
Implementation Notes
(added by Chriscbr): Current logic depends on implementing
invokeWithLogs()
method here: https://github.com/winglang/wing/blob/7624e16278478db4499e3b439e0c70e4ba98a1b0/libs/wingsdk/src/shared-gcp/function.inflight.ts#L82-L94. Need to add this or consider alternative logging solutionsComponent
SDK
Community Notes