This repository contains the Logz.io shippers for .NET frameworks, currently including log4net and NLog.
Prerequisites: .Net Core SDK version 2.0 or above
- Async, non-blocking and non-throwing logging to Logz.io
- Logs are uploaded in bulks of 100 messages (configurable) or a timeout of 5 seconds (configurable)
- Up to 3 retries (configurable) 2 seconds apart (configurable) in case the upload fails, for whatever reason
- On console applications, logs are flushed before the app exits
- Enable debug mode to see debug messages and errors in the console output and trace log
- Provided with sample applications and configuration examples
This project uses .NET 8.0 and can be built and tested locally. Follow the steps below to do so:
-
Clone the repository
git clone https://github.com/logzio/logzio-dotnet.git
-
Go to
./src
directory
cd logzio-dotnet/src
- Build and run tests
dotnet restore logzio-dotnet.sln
dotnet build logzio-dotnet.sln /p:Configuration=Release
dotnet test ./UnitTests/UnitTests.csproj
dotnet test ./IntegrationTests/IntegrationTests.csproj