Logging
Subsquid Cloud automatically collects the logs emitted by the squid processor, its API server and its database. Please use the built-in SDK logger throughout your code when developing for Subsquid Cloud. You can set the severity flags for squids running in the Cloud via SQD_DEBUG, SQD_TRACE or SQD_INFO - see Environment Variables.
To inspect and follow the squid logs from all the squid services, use sqd logs:
sqd logs <name>@<version> -f
There are additional flags to filter the logs:
-fto follow the logs-callows filtering by the container (can beprocessor,db,db-migrateandquery-node)-lallows filtering by the severity-pnumber of lines to fetch (default:100)--sincecut off by the time (default:1d). Accepts the notation of themslibrary:1d,10h,1m.
Example
sqd logs squid-substrate-template@v1 -f -c processor -l info --since 1d