diff --git a/AuthorizeNET/AuthorizeNET/AuthorizeNET.csproj b/AuthorizeNET/AuthorizeNET/AuthorizeNET.csproj index 8075368..2538f2e 100644 --- a/AuthorizeNET/AuthorizeNET/AuthorizeNET.csproj +++ b/AuthorizeNET/AuthorizeNET/AuthorizeNET.csproj @@ -1,7 +1,7 @@  - netcoreapp2.0 + netcoreapp3.1 1.0.0.0 @@ -22,8 +22,8 @@ - - + + diff --git a/AuthorizeNET/AuthorizeNET/Utilities/LogFactory.cs b/AuthorizeNET/AuthorizeNET/Utilities/LogFactory.cs index 8f0ad06..9c2b918 100644 --- a/AuthorizeNET/AuthorizeNET/Utilities/LogFactory.cs +++ b/AuthorizeNET/AuthorizeNET/Utilities/LogFactory.cs @@ -5,11 +5,10 @@ public static class LogFactory { - private static ILoggerFactory LoggerFactory => new LoggerFactory().AddDebug(LogLevel.Debug); - public static ILogger getLog(Type classType) { - return LoggerFactory.CreateLogger(classType.FullName); + using var loggerFactory = LoggerFactory.Create(builder => builder.AddDebug()); + return loggerFactory.CreateLogger(classType.FullName); } } } \ No newline at end of file