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; }
        internal static ILogger CreateLogger<T>() => LoggerProvider.CreateLogger(typeof(T).FullName);
        internal static ILogger CreateLogger(string categoryName) => LoggerProvider.CreateLogger(categoryName);
    }
}