https://pulumi.com logo
#general
Title
# general
a

able-doctor-68496

09/15/2021, 9:12 PM
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

green-stone-37839

09/15/2021, 9:37 PM
https://www.pulumi.com/docs/reference/cli/pulumi_up/ The
--debug
flag is what you're looking for, I think.
a

able-doctor-68496

09/15/2021, 10:09 PM
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

little-cartoon-10569

09/15/2021, 10:41 PM
<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
.
4 Views