// Lazy construction an object of ILogger // In this method, we ask IoC container for a CastleLog.ILoggerFactory // instance to create CastleLog.ILogger object private CastleLog.ILogger initLogger() => IocHelper.GetService <CastleLog.ILoggerFactory>().Create(_name);