nk.logger.csv 1.0.1

A Logger to log errors and exceptions inrto a CSV file.

Install-Package nk.logger.csv -Version 1.0.1
dotnet add package nk.logger.csv --version 1.0.1
<PackageReference Include="nk.logger.csv" Version="1.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 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage

  1. Install the nuget package.
  2. Create a csvlogger instance in your base class.
  3. Pass the filename, datetime, relative path and other parameters according to your application.
  4. Create wrapper functions for the functions you need from csv.logger.
  5. Inherit this base class in your other classes.

Code Sample

public class Base
{
 private nk.logger.csv.Logger csvLogger;
 private string dateFormat = "yyyy-MM-dd HH:mm:ss.fff";
 private string fileName = "ErrorLog";
 
 public Base()
 {
  csvLogger = new nk.logger.csv.Logger(dateFormat, fileName);
 }
            
 public void Error(Exception ex)
 {
  csvLogger.Error(ex);
 }

}

Documentation can also be found in the link: https://kolappannathan.github.io/projects/simple-csv-logger/

Usage

  1. Install the nuget package.
  2. Create a csvlogger instance in your base class.
  3. Pass the filename, datetime, relative path and other parameters according to your application.
  4. Create wrapper functions for the functions you need from csv.logger.
  5. Inherit this base class in your other classes.

Code Sample

public class Base
{
 private nk.logger.csv.Logger csvLogger;
 private string dateFormat = "yyyy-MM-dd HH:mm:ss.fff";
 private string fileName = "ErrorLog";
 
 public Base()
 {
  csvLogger = new nk.logger.csv.Logger(dateFormat, fileName);
 }
            
 public void Error(Exception ex)
 {
  csvLogger.Error(ex);
 }

}

Documentation can also be found in the link: https://kolappannathan.github.io/projects/simple-csv-logger/

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
1.0.1 220 10/24/2018
1.0.0 138 9/20/2018