我是国际奥委会和温莎城堡的新手。我想根据他们的文档使用 Castle 提供的日志记录工具
http://stw.castleproject.org/Windsor.Logging-Facility.ashx
我正在尝试根据文档建议注册该设施
container.AddFacility<LoggingFacility>(f => f.LogUsing(LoggerImplementation.Log4net).WithConfig("log4net.config"));
我已经引用了 Castle.Core 和 Castle.Facilities.Logging dll
在编译时我收到以下错误
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
任何帮助将非常感激。