nk.logger.csv 3.0.1

.NET Standard 2.1
Install-Package nk.logger.csv -Version 3.0.1
dotnet add package nk.logger.csv --version 3.0.1
<PackageReference Include="nk.logger.csv" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nk.logger.csv --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nk.logger.csv, 3.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install nk.logger.csv as a Cake Addin
#addin nuget:?package=nk.logger.csv&version=3.0.1

// Install nk.logger.csv as a Cake Tool
#tool nuget:?package=nk.logger.csv&version=3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Simple CSV Logger

Targets .Net standard 2.0 GitHub GitHub Workflow Status GitHub Workflow Status

This is a simple logger for logging errors in a c# application. But instead of writing the logs to a txt file this logger writes them into a CSV file.

Downloads: Nuget


  1. Install the nuget package.
  2. Create an instance for nk.logger.csv.Logger in your base class.
  3. Edit the configuration according to your application needs.
  4. Create wrapper functions for the functions you need from csv.logger.
  5. Inherit this base class in your other classes.

Below is a sample base class with configurations,

using System;

namespace Core.Lib
    public class Logger
        private nk.logger.csv.Logger csvLogger;

        public Logger(string dateFormat, string fileName, string relativePath = "", char replacementValue = ';')
            var config = new nk.logger.csv.LoggerConfig();
            // adding configuration
            csvLogger = new nk.logger.csv.Logger(config);

        #region [Public Logger functions]

        public void Error(Exception ex) => csvLogger.Error(ex);

        public void Fatal(Exception ex) => csvLogger.Fatal(ex);

        public void Debug(string text) => csvLogger.Debug(text);

        public void Error(string text) => csvLogger.Error(text);

        public void Fatal(string text) => csvLogger.Fatal(text);

        #endregion [Public Logger functions]
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.1 317 9/16/2021
3.0.0 356 10/5/2020
2.1.0 715 8/6/2019
2.0.1 351 7/5/2019
2.0.0 332 7/4/2019
1.0.2 356 6/28/2019
1.0.1 633 10/24/2018
1.0.0 694 9/20/2018

### Changed
- Updating website details
- Updated dependencies
- Updating CI/CD to use .NET 5 SDK
- Updated tests project to .NET 5
- API for manually testing the logger is replaced with a console app