How do you view logs that are output via `pulumi.d...
# general
a
How do you view logs that are output via
pulumi.debug
or
<http://pulumi.info|pulumi.info>
? I have tried stuff mentioned here: https://www.pulumi.com/docs/troubleshooting/#diagnosing-issues, but I don’t know what level of verbosity I need for my own debug logs, and I haven’t been able to find my logs even I set
--logtostderr
and
-v=9
. Also, where do I go to view logs if I don’t use
--logtostderr
?
g
https://www.pulumi.com/docs/reference/cli/pulumi_up/ The
--debug
flag is what you're looking for, I think.
a
That showed me some different debug output, but it still didn’t output my logs…
I’m still looking for an answer to this. It seems like a really simple one - surely someone has used
<http://pulumi.info|pulumi.info>
or
pulumi.debug
for logging?
l
<http://pulumi.log.info|pulumi.log.info>
outputs to the console during a preview or up. They're formatted nicely but they're not suitable for use as trace or error logs.
For example, if you use them inside a resource constructor, they appear to the right of the resource during preview and up.
But they're not error logs that you can capture using
pulumi up 2> errors.log
.