EonaCatCoreLogger 1.0.1

EonaCatCoreLogger is a logging library created for .NET Core.

Install-Package EonaCatCoreLogger -Version 1.0.1
dotnet add package EonaCatCoreLogger --version 1.0.1
<PackageReference Include="EonaCatCoreLogger" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EonaCatCoreLogger --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

EonaCatCoreLogger

Below you can find an example on how to implement a logger instance:

namespace Example
{
    // EonaCatCoreLogger.
    // Copyright EonaCat (Jeroen Saey) 2017
    // https://eonacat.com

   using EonaCat.Logger;
   using EonaCat.Logger.Managers;

   public static class Logger
   {
       public static ELogType LogLevel = ELogType.DEBUG;

       private static readonly LogManager _logManager = new LogManager("Log folder location path");

       public static void Log(string message, ELogType logType = ELogType.INFO)
       {
           _logManager.Write(message, logType, LogLevel);
       }
   }
}

How to call the instance:

Logger.Log("This is a info message for the EonaCatCoreLogger");    //Depending on your default settings above
Logger.Log("This is a debug message for the EonaCatCoreLogger", ELogType.DEBUG);
Logger.Log("This is a warning message for the EonaCatCoreLogger", ELogType.WARNING);
Logger.Log("This is a error message for the EonaCatCoreLogger", ELogType.ERROR);
Logger.Log("This is a critical message for the EonaCatCoreLogger", ELogType.CRITICAL);
Logger.Log("This is a trace message for the EonaCatCoreLogger", ELogType.TRACE);

EonaCatCoreLogger

Below you can find an example on how to implement a logger instance:

namespace Example
{
    // EonaCatCoreLogger.
    // Copyright EonaCat (Jeroen Saey) 2017
    // https://eonacat.com

   using EonaCat.Logger;
   using EonaCat.Logger.Managers;

   public static class Logger
   {
       public static ELogType LogLevel = ELogType.DEBUG;

       private static readonly LogManager _logManager = new LogManager("Log folder location path");

       public static void Log(string message, ELogType logType = ELogType.INFO)
       {
           _logManager.Write(message, logType, LogLevel);
       }
   }
}

How to call the instance:

Logger.Log("This is a info message for the EonaCatCoreLogger");    //Depending on your default settings above
Logger.Log("This is a debug message for the EonaCatCoreLogger", ELogType.DEBUG);
Logger.Log("This is a warning message for the EonaCatCoreLogger", ELogType.WARNING);
Logger.Log("This is a error message for the EonaCatCoreLogger", ELogType.ERROR);
Logger.Log("This is a critical message for the EonaCatCoreLogger", ELogType.CRITICAL);
Logger.Log("This is a trace message for the EonaCatCoreLogger", ELogType.TRACE);

Release Notes

Public release version 1.0.1

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 152 12/30/2018