Skip to content

FantasticFiasco/serilog-sinks-http-sample-dotnet-framework

Repository files navigation

Serilog.Sinks.Http - Sample in .NET Framework

CI

This repository contains a sample application of Serilog.Sinks.Http producing log events sent over HTTP to a basic log server.

sample

log server

Running the application

  1. Open dotnet-framework-sample.sln is Visual Studio
  2. Right-click solution is Visual Studio and select Set StartUp Projects...
  3. Select Multiple startup projects and set action of both log-server and sample to Start
  4. Click OK
  5. Press F5 to start debugging

What 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.

About

Sample application of Serilog.Sinks.Http producing log events in .NET Framework.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 5

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy