mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Removed assembly level fixtures
This commit is contained in:
parent
72d0fc50ed
commit
207550176c
22 changed files with 43 additions and 51 deletions
|
@ -31,13 +31,18 @@ namespace NzbDrone.Core.Instrumentation
|
|||
Common.LogConfiguration.RegisterConsoleLogger(LogLevel.Info, "NzbDrone.Core.CentralDispatch");
|
||||
|
||||
LogManager.ConfigurationReloaded += ((s, e) => RegisterDatabaseLogger(_databaseTarget));
|
||||
Common.LogConfiguration.Reload();
|
||||
|
||||
}
|
||||
|
||||
public static void RegisterDatabaseLogger(DatabaseTarget databaseTarget)
|
||||
{
|
||||
LogManager.Configuration.AddTarget("DbLogger", databaseTarget);
|
||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, databaseTarget));
|
||||
Reload();
|
||||
}
|
||||
|
||||
public static void Reload()
|
||||
{
|
||||
Common.LogConfiguration.Reload();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue