EonaCatCoreLogger 1.0.3 License Info
EonaCatCoreLogger 1.0.3
EonaCatCoreLogger
EonaCatLogger for .NET Core
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);