Adding custom data to logs

We’d like to enrich the auth0 logs with some additional data (like user country), primarily to assist with debugging login issues and long term forensics of bad behaviour.

Is that possible? I hoped it might be achieved with rules in a similar way to adding custom claims to an IDToken, but my experiments have failed so far.

I can see it’s possible to use console.log in rules, however that output isn’t available in the persistent logs.