Beispiel #1
0
        public Logger(string logName)
        {
            var name = string.IsNullOrEmpty(logName) ? DateTime.Now.ToShortDateString() : logName;

            _logger = LogManager.GetCurrentClassLogger();
            var configuration = PingerRegistrationModules.GetKernel().Get <IConfigurationNlog>();

            LogManager.Configuration = configuration.GetLogConfiguration(name);
            _output = PingerRegistrationModules.GetKernel().Get <IConsoleOutputUi>();
        }
 public ConsoleWorkProcessUi()
 {
     InjectKernel = PingerRegistrationModules.GetKernel();
     _log         = InjectKernel.Get <Logger.ILogger>();
     _pinger      = InjectKernel.Get <IPingerProcessor>();
     _worker      = InjectKernel.Get <IConfigWorker>();
     _outMess     = InjectKernel.Get <IConsoleOutputUi>();
     _inputs      = InjectKernel.Get <IInputsUi>();
     SetUiSettings();
 }