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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serilog.Sinks.Http - Sample in .NET Core

CI

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

Sample output

Running the application

  1. Run docker compose up

What you will end up with is two containers, 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 appsettings.json using Serilog.Settings.Configuration.

About

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

License:Apache License 2.0


Languages

Language:C# 90.1%Language:Dockerfile 9.9%