---
title: Configure an audit exception formatter
description: The audit service includes an exception formatter, configured in the following snippet of the audit.json file:
component: pingidm
version: 8.1
page_id: pingidm:audit-guide:audit-exception-formatter
canonical_url: https://docs.pingidentity.com/pingidm/8.1/audit-guide/audit-exception-formatter.html
keywords: ["Audit", "Logs", "Configuration", "Exception Formatter"]
---

# Configure an audit exception formatter

The audit service includes an *exception formatter*, configured in the following snippet of the `audit.json` file:

```json
"exceptionFormatter" : {
   "type" : "text/javascript",
   "file" : "bin/defaults/script/audit/stacktraceFormatter.js"
},
```

As shown, you may find the script that defines how the exception formatter works in the `stacktraceFormatter.js` file. That file handles the formatting and display of exceptions written to the audit logger.
