using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;

namespace AyaNova.Util
{
    /// <summary>
    /// Shared logger
    /// </summary>
    internal static class ApplicationLogging
    {
        internal static ILogger theLogger{get;set;}
       internal static NLogLoggerProvider LoggerProvider { get; set; }// = new LoggerFactory();
        internal static ILogger CreateLogger<T>() =>  LoggerProvider.CreateLogger(typeof(T).FullName);        
        //internal static ILogger CreateLogger(string categoryName) => theLogger;
        internal static ILogger CreateLogger(string categoryName)=> LoggerProvider.CreateLogger(categoryName);


      
        // internal static ILoggerFactory LoggerFactory { get; set; }// = new LoggerFactory();
        // internal static ILogger CreateLogger<T>() => LoggerFactory.CreateLogger<T>();        
        // internal static ILogger CreateLogger(string categoryName) => LoggerFactory.CreateLogger(categoryName);

    }
}