diff --git a/Yubico.Core/src/Yubico/Core/Logging/Loggers.cs b/Yubico.Core/src/Yubico/Core/Logging/Loggers.cs
index a44a0ce9..ab35589d 100644
--- a/Yubico.Core/src/Yubico/Core/Logging/Loggers.cs
+++ b/Yubico.Core/src/Yubico/Core/Logging/Loggers.cs
@@ -20,12 +20,13 @@
namespace Yubico.Core.Logging
{
///
- /// TODO
+ /// TODO write
///
public static class Loggers
{
- private static readonly ILoggerFactory LoggerFactory = GetFactory();
- private static ILoggerFactory GetFactory()
+ private static ILoggerFactory LoggerFactory = GetDefaultFactory();
+
+ private static ILoggerFactory GetDefaultFactory()
{
const string AppsettingsJson = "appsettings.json";
IConfigurationRoot configuration = new ConfigurationBuilder()
@@ -50,6 +51,13 @@ private static ILoggerFactory GetFactory()
});
}
+ ///
+ /// TODO write
+ ///
+ ///
+ public static void ConfigureLoggerFactory(Action configure)
+ => LoggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(configure);
+
///
public static ILogger GetLogger() => LoggerFactory.CreateLogger();