winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.6k stars 180 forks source link

Verbose logging CLI flag #6405

Open Chriscbr opened 2 weeks ago

Chriscbr commented 2 weeks ago

Use Case

For debugging issues related to the lifecycle of simulator resources, serialization, or just to get more info in general, it's possible to stream verbose logs when running wing tests by passing the DEBUG=verbose environment variable

DEBUG=verbose wing test

It would be convenient if there was a dedicated CLI flag for this, like --verbose, --debug=verbose, or --loglevel verbose etc.

Proposed Solution

No response

Implementation Notes

No response

Component

CLI

Community Notes

Chriscbr commented 2 weeks ago

@MarkMcCulloh thoughts?

MarkMcCulloh commented 2 weeks ago

My pick would be --traceLevel or --logLevel, I don't have a strong feeling though. As a side point, the DEBUG env is more of a compiler internal thing so I think whatever flag is added here should work perpendicular to it.