Skip to content

Commit

Permalink
docs: Add scrobble modification logging docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Sep 24, 2024
1 parent 54fe61c commit cb2c727
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docsite/docs/configuration/transforms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,26 @@ Top-level hooks can also be an array of hooks. This makes creating multiple scen

</details>

### Logging

MS can log the output of hook transformations if/when they occur. In the `playTransform` object of a Source/Client config use `log`:

* `"log": true` => Output original play + final transformed output of last hook in the array
* `"log": "all"` => Output original play + final transformed output of **each** hook in the array

```json5
{
"name": "myThing",
"data": {/*...*/},
"options": {
"playTransform": {
"preCompare": {/*...*/},
"log": true
}
}
}
```

## Examples

### Remove phrase from Title in all new Plays
Expand Down

0 comments on commit cb2c727

Please sign in to comment.