https://github.com/logzio/logzio-dotnet
Logz.io shippers for .NET frameworks, currently including log4net and NLog.
https://github.com/logzio/logzio-dotnet
integration log4net logzio nlog
Last synced: 2 months ago
JSON representation
Logz.io shippers for .NET frameworks, currently including log4net and NLog.
- Host: GitHub
- URL: https://github.com/logzio/logzio-dotnet
- Owner: logzio
- License: mit
- Created: 2016-12-15T16:22:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T16:53:02.000Z (9 months ago)
- Last Synced: 2025-03-30T07:11:12.206Z (3 months ago)
- Topics: integration, log4net, logzio, nlog
- Language: C#
- Homepage:
- Size: 310 KB
- Stars: 22
- Watchers: 13
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/logzio/logzio-dotnet)
# logzio-dotnet
This repository contains the [Logz.io](http://www.logz.io) shippers for .NET frameworks, currently including [log4net](https://logging.apache.org/log4net/) and [NLog](http://nlog-project.org/).
Prerequisites:
.Net Core SDK version 2.0 or above- [log4net appender installation and configuration](docs/log4net.md) [](https://www.nuget.org/packages/Logzio.DotNet.Log4net)
- [NLog target installation and configuration](docs/nlog.md) [](https://www.nuget.org/packages/Logzio.DotNet.NLog)## Features
- Async, non-blocking and non-throwing logging to [Logz.io](http://www.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## Build and Test Locally
This project uses .NET 8.0 and can be built and tested locally. Follow the steps below to do so:
1. Clone the repository
```bash
git clone https://github.com/logzio/logzio-dotnet.git
```2. Go to `./src` directory
```bash
cd logzio-dotnet/src
```3. Build and run tests
```bash
dotnet restore logzio-dotnet.sln
dotnet build logzio-dotnet.sln /p:Configuration=Release
dotnet test ./UnitTests/UnitTests.csproj
dotnet test ./IntegrationTests/IntegrationTests.csproj
```