We’d like to add custom fields to auth0 logs – in particular error logs, such as a request id that we can use to correlate auth0 logs with the logs in our backend.
For example, instead of:
"details": {
"error": {
"message": "Invalid credentials"
}
}
we’d like to have:
"details": {
"error": {
"message": "Invalid credentials",
"code": "invalid.credentials",
"requestId": "12345",
// etc
}
}
Is this possible? I did a quick investigation and couldn’t find a way.
Thanks,
Luis