Autofac.Extras.NLog icon indicating copy to clipboard operation
Autofac.Extras.NLog copied to clipboard

Question: Why not using NLog.ILogger

Open LordPinhead opened this issue 6 years ago • 3 comments

Why did you create an extra Interface for the ILogger? I changed it to global::NLog.ILogger so i do not have to Strongname it in my Application. Is it why you commented "//TODO: UPDATE TO USE NLOG:INTERFACE Package (Fork and solve nlog.interface issues)" in the ILogger?

LordPinhead avatar Jun 27 '18 09:06 LordPinhead

Or at least explicitly document that the ILogger interface should be the one from the Autofac.Extras.NLog namespace.

davidshen84 avatar Oct 17 '18 05:10 davidshen84

@CNBoland

This is fixed by https://github.com/ziyasal/Autofac.Extras.NLog/pull/19?

304NotModified avatar Mar 23 '19 03:03 304NotModified

@304NotModified @davidshen84 @LordPinhead Can you verify in your project that injecting NLog.ILogger is working for you? The Sample.ConsoleApp project in source tree is configured this way.

CNBoland avatar Aug 18 '21 15:08 CNBoland