Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fantasticfiasco/serilog-sinks-http-sample-dotnet-framework
Sample application of Serilog.Sinks.Http producing log events in .NET Framework.
https://github.com/fantasticfiasco/serilog-sinks-http-sample-dotnet-framework
http sample serilog sinks
Last synced: 13 days ago
JSON representation
Sample application of Serilog.Sinks.Http producing log events in .NET Framework.
- Host: GitHub
- URL: https://github.com/fantasticfiasco/serilog-sinks-http-sample-dotnet-framework
- Owner: FantasticFiasco
- License: apache-2.0
- Created: 2018-04-29T14:49:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T03:48:52.000Z (4 months ago)
- Last Synced: 2024-10-28T11:19:00.183Z (2 months ago)
- Topics: http, sample, serilog, sinks
- Language: C#
- Homepage:
- Size: 280 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Serilog.Sinks.Http - Sample in .NET Framework
[![CI](https://github.com/FantasticFiasco/serilog-sinks-http-sample-dotnet-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/FantasticFiasco/serilog-sinks-http-sample-dotnet-framework/actions/workflows/ci.yml)
This repository contains a sample application of [Serilog.Sinks.Http](https://github.com/FantasticFiasco/serilog-sinks-http) producing log events sent over HTTP to a basic log server.
![sample](assets/sample.png)
![log server](assets/log-server.png)
## Running the application
1. Open `dotnet-framework-sample.sln` is Visual Studio
1. Right-click solution is Visual Studio and select _Set StartUp Projects..._
1. Select _Multiple startup projects_ and set action of both _log-server_ and _sample_ to _Start_
1. Click _OK_
1. Press _F5_ to start debuggingWhat you will end up with is two console applications, one producing log events while the other consumes the log events.
## Remarks
- The sample application is using a custom implementation of a HTTP client, mainly to show that it is possible to do so. But don't specify a custom implementation if you don't have to.
- The sink is configured in code, but could as well be configured in `App.config` using [Serilog.Settings.AppSettings](https://github.com/serilog/serilog-settings-appsettings).