https://github.com/aimenux/serilogwebapidemo
Using Serilog to send logs to multiple sinks
https://github.com/aimenux/serilogwebapidemo
applicationinsights memory-cache net10 serilog udp webapi
Last synced: about 1 month ago
JSON representation
Using Serilog to send logs to multiple sinks
- Host: GitHub
- URL: https://github.com/aimenux/serilogwebapidemo
- Owner: aimenux
- License: mit
- Created: 2021-07-31T23:57:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-12-24T17:58:36.000Z (7 months ago)
- Last Synced: 2025-12-26T08:16:10.775Z (7 months ago)
- Topics: applicationinsights, memory-cache, net10, serilog, udp, webapi
- Language: C#
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- 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 10.0, serilog