This repository contains two sample applications of Serilog.Sinks.Udp producing log events sent using UDP to Log2Console.
- Download the latest release of Log2Console
- Unzip the release
- Install Log2Console using the installer found in the
output
folder - 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
- Open
dotnet-framework-sample.sln
is Visual Studio - Right-click on project console-sample and select Set As StartUp Project
- Press F5 to start debugging
What you will end up with is a console application producing log events displayed in Log2Console.
- Download the latest release of Log2Console
- Unzip the release
- Install Log2Console using the installer found in the
output
folder - 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
- Open
dotnet-framework-sample.sln
is Visual Studio - Right-click on project web-api-sample and select Set As StartUp Project
- Press F5 to start debugging
- Using a web server, navigate to the endpoints exposed by
ValuesController
What you will end up with is a web API application hosted in IIS Express producing log events displayed in Log2Console.