15 lines
443 B
C#
15 lines
443 B
C#
using DryIoc;
|
|
using NLog;
|
|
|
|
namespace NzbDrone.Common.Instrumentation.Extensions
|
|
{
|
|
public static class CompositionExtensions
|
|
{
|
|
public static IContainer AddNzbDroneLogger(this IContainer container)
|
|
{
|
|
container.Register(Made.Of<Logger>(() => LogManager.GetLogger(Arg.Index<string>(0)), r => r.Parent.ImplementationType.Name.ToString()), reuse: Reuse.Transient);
|
|
return container;
|
|
}
|
|
}
|
|
}
|