public static LoggingFacility UseCustomNLog(this LoggingFacility loggingFacility)
        {
            ///return loggingFacility.LogUsing<CastleNLogLoggerFactory>().WithAppConfig();

            var factory = new CastleNLogLoggerFactory(new NLogFactory());

            return(loggingFacility.LogUsing(factory).WithAppConfig());
        }
 public CastleNlogLogger(framework.ILogger logger, CastleNLogLoggerFactory factory)
 {
     Logger  = logger;
     Factory = factory;
 }