Example #1
0
 public static void LogError(LoggerCofiguration.LogProvider provider, ILoggerErrorObject loggerErrorObject)
 {
     switch (provider)
     {
     case LoggerCofiguration.LogProvider.File:
         logger = new FileLogger();
         logger.Log(loggerErrorObject);
         break;
     }
 }
Example #2
0
        public static void Log(LoggerCofiguration.LogProvider provider, ILoggerObject loggerObject)
        {
            switch (provider)
            {
            case LoggerCofiguration.LogProvider.File:
                logger = new FileLogger();
                logger.Log(loggerObject);
                break;
            }

            //var logger = IoC.Unity.Resolve<ILogger>("provider");
            // logger.Log(...);
        }