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