truss model-logs [OPTIONS]
Fetches logs for a deployed model. Use this command to debug issues or monitor model behavior in production.
Options
The ID of the model to fetch logs from.
The ID of the deployment to fetch logs from.
Tail for ongoing logs. Streams new log entries as they arrive.
Name of the remote in .trussrc to fetch logs from.
Example:
To fetch logs for a specific deployment, use the following:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID
To stream logs in real-time, use the following:
truss model-logs --model-id YOUR_MODEL_ID --deployment-id YOUR_DEPLOYMENT_ID --tail