Skip to content

Commit

Permalink
Add documentation for Serilog.Exceptions.Refit
Browse files Browse the repository at this point in the history
  • Loading branch information
heath committed Sep 30, 2021
1 parent 39553f2 commit af6eb61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1206,4 +1206,10 @@ var gitHubApi = RestService.For<IGitHubApi>("https://api.github.com",
});
```

Note that exceptions raised when attempting to deserialize the response are not affected by this.
Note that exceptions raised when attempting to deserialize the response are not affected by this.

#### `ApiException` deconstruction with Serilog

For users of [Serilog](https://serilog.net), you can enrich the logging of `ApiException` using the
[Serilog.Exceptions.Refit](https://www.nuget.org/packages/Serilog.Exceptions) NuGet package. Details of how to
integrate this package into your applications can be found [here](https://github.com/RehanSaeed/Serilog.Exceptions#serilogexceptionsrefit).

0 comments on commit af6eb61

Please sign in to comment.