|
@@ -20,11 +20,11 @@ namespace Abc.Zebus
|
|
return;
|
|
return;
|
|
|
|
|
|
_loggerFactory = value;
|
|
_loggerFactory = value;
|
|
- LoggerFactoryChanged?.Invoke();
|
|
|
|
|
|
+ RefreshConfiguration();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public static event Action? LoggerFactoryChanged;
|
|
|
|
|
|
+ public static event Action? ConfigurationUpdated;
|
|
|
|
|
|
public static ILogger GetLogger(string name)
|
|
public static ILogger GetLogger(string name)
|
|
=> new ForwardingLogger(name);
|
|
=> new ForwardingLogger(name);
|
|
@@ -32,6 +32,9 @@ namespace Abc.Zebus
|
|
public static ILogger GetLogger(Type type)
|
|
public static ILogger GetLogger(Type type)
|
|
=> GetLogger(type.FullName!);
|
|
=> GetLogger(type.FullName!);
|
|
|
|
|
|
|
|
+ public static void RefreshConfiguration()
|
|
|
|
+ => ConfigurationUpdated?.Invoke();
|
|
|
|
+
|
|
private class ForwardingLogger : ILogger
|
|
private class ForwardingLogger : ILogger
|
|
{
|
|
{
|
|
private readonly string _name;
|
|
private readonly string _name;
|