You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
443 B
15 lines
443 B
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;
|
|
}
|
|
}
|
|
}
|