https://github.com/aimenux/serilogwebapidemo
Using Serilog to send logs to multiple sinks
https://github.com/aimenux/serilogwebapidemo
applicationinsights memory-cache net80 serilog udp webapi
Last synced: 11 months ago
JSON representation
Using Serilog to send logs to multiple sinks
- Host: GitHub
- URL: https://github.com/aimenux/serilogwebapidemo
- Owner: aimenux
- Created: 2021-07-31T23:57:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T20:44:30.000Z (over 1 year ago)
- Last Synced: 2025-01-10T00:24:19.907Z (about 1 year ago)
- Topics: applicationinsights, memory-cache, net80, serilog, udp, webapi
- Language: C#
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/aimenux/SerilogWebApiDemo/actions/workflows/ci.yml)
# SerilogWebApiDemo
```
Using Serilog to send logs to multiple sinks
```
> In this repo, i m using serilog in order to enable logging in web api applications :
>
> - 2 configuration ways : code config based or json config based (one way is enabled at the same time)
>
> - 1 exception filter attribute in order to handle some specific domain exceptions as 400 bad requests
>
> - 4 telemetry processors to filter telemetries or to modify the sampling behaviour
>
> - 1 telemetry initializer to add extra information as custom properties
>
> - 4 sinks : console, file, application insights, udp
>
**`Tools`** : net 8.0, serilog