add basic debug

This commit is contained in:
Cody Robibero 2022-01-25 08:09:55 -07:00 committed by GitHub
parent dab34a43f2
commit cd9a7a9645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,25 @@
</a>
</p>
## Debugging:
#### My webhook isn't working!
Change your `logging.json` file to output `debug` logs for `Jellyfin.Plugin.Webhook`. Make sure to add a comma to the end of `"System": "Warning"`
```diff
{
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"System": "Warning",
+ "Jellyfin.Plugin.Webhook": "Debug"
}
}
```
## Documentation:
Use [Handlebars](https://handlebarsjs.com/guide/) templating engine to format notifications however you wish.
See [Templates](Jellyfin.Plugin.Webhook/Templates) for sample templates.