Skip to content

Create a new debug log session for a user.

Debug logs have the following limits:

  • Maximum one (1) debug log per user
  • Maximum 20 debug logs per Vault
POST/api/{version}/logs/code/debug
NameDescription
Acceptapplication/json
Content-Typemultipart/form-data
NameDescription
name
required
The UI-friendly name for this debug log, visible to Admins in the Vault UI. Maximum 128 characters.
user_id
required
The ID of the user who will trigger entries into this debug log.
log_level
optional
The level of error messages to capture in this log. Choose one of the following:
  • all__sys (default)
  • exception__sys
  • error__sys
  • warn__sys
  • info__sys
  • debug__sys
Learn more about the log level types in Vault Help.
class_filters
optional
Class filters allow you to restrict debug log entries to only include entries for specific classes. To include class filters for this debug log, include an array or comma-separated list of fully-qualified class names. For example, com.veeva.vault.custom.triggers.HelloWorld.
curl -X POST -H "Authorization: {SESSION_ID}" \ -d "name=Record Trigger Troubleshooting" \ -d "user_id=12345" \ -d "class_filters=com.veeva.vault.custom.triggers.HelloWorld,com.veeva.vault.custom.triggers.Approval" \ https://myvault.veevavault.com/api/v26.1/logs/code/debug
{ "responseStatus": "SUCCESS", "data": { "id": "0LS000000003001" } }