Is there a way to download cloud functions logs as a text file?
firebase functions:log > logs.txt
You can also use:
gcloud logging read "resource.type=cloud_function" --limit 1000 --format json > logs.json
To get the last 1000 log entries. You can also use --freshness=1d
to get entries not older than one day. More info with and examples with gcloud logging read --help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With