Ich bin neu in IOC und Castle Windsor. Ich möchte die Protokollfunktion von CastleRegistrieren Castle Windsor Logging Facility
pro ihre Dokumentationnutzen http://stw.castleproject.org/Windsor.Logging-Facility.ashx
Ich versuche, die Anlage gemäß der Dokumentation Empfehlung
container.AddFacility<LoggingFacility>(f => f.LogUsing(LoggerImplementation.Log4net).WithConfig("log4net.config"));
ich die Castle.Core und Castle verwiesen haben registrieren .Facilities.Logging dLL
bei der Kompilierung ich die folgende Fehlermeldung erhalten
The type 'Castle.Facilities.Logging.LoggingFacility' cannot be used as type parameter 'T' in the generic type or method 'Castle.Windsor.IWindsorContainer.AddFacility<T>(System.Func<T,object>)'.
There is no implicit reference conversion from 'Castle.Facilities.Logging.LoggingFacility' to 'Castle.MicroKernel.IFacility'. C:\Sports\app\Daedalsoft.Sports.ApplicationServices\WindsorServiceInstaller.cs
Jede Hilfe wäre sehr willkommen.
Sie Mauricio danken, dass es war ... – user351479