Debugging
Retrieving logs for snap-in
Using DevRev CLI, you can retrieve build logs and runtime logs for your snap-ins.
How to retrieve logs using DevRev CLI
-
To retrieve logs for all snap-in packages/versions in your dev org after a particular timestamp, run the following command:
-
To retrieve logs between two timestamps and use a cursor for pagination, run the following command:
By default, not specifying --before
lists all logs until the current timestamp in descending order (latest logs at the top).
-
To retrieve logs for a specific snap-in package, run the following command:
-
To retrieve logs containing the text “failed” but exclude logs with level “info”, run the following command:
The JSON response fields are filterable. For example, to view snap-in version execution logs only, add the filter on process
field to match function
and run the following command:
Similarly, you can filter only for build logs by filtering for process = build
.
After creating the appropriate filters, to view the logs conveniently, run the following command:
You can customize the part before jq
according to your filters.
Troubleshooting
Error “You are not authorized to perform this operation”
You are not an admin of the dev org where you want to create the snap-in.