You can log the error object completely.
```javascript
log().error({'err': err}, 'Error whilst creating ticket ID');
```