Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Repository files navigation

Serilog.Sinks.Udp - Sample in .NET Core

CI

This repository contains two sample applications of Serilog.Sinks.Udp producing log events sent using UDP to Log2Console.

Running the console application

  1. Download the latest release of Log2Console
  2. Unzip the release
  3. Install Log2Console using the installer found in the output folder
  4. Start Log2Console and add a UDP receiver with the following settings:
    • Multicast Group Address (Optional):
    • Receive Buffer Size: 10000
    • UDP Port Number: 7071
    • Use IPv6 Addresses: False
  5. Open dotnet-core-sample.sln is Visual Studio
  6. Right-click on project console-sample and select Set As StartUp Project
  7. Press F5 to start debugging

What you will end up with is a console application producing log events displayed in Log2Console.

Log2Console

Running the Web API application

  1. Download the latest release of Log2Console
  2. Unzip the release
  3. Install Log2Console using the installer found in the output folder
  4. Start Log2Console and add a UDP receiver with the following settings:
    • Multicast Group Address (Optional):
    • Receive Buffer Size: 10000
    • UDP Port Number: 7071
    • Use IPv6 Addresses: False
  5. Open dotnet-core-sample.sln is Visual Studio
  6. Right-click on project web-api-sample and select Set As StartUp Project
  7. Press F5 to start debugging

What you will end up with is a web API application hosted in IIS Express producing log events displayed in Log2Console.

Log2Console

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Languages