Ejemplo n.º 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>();
        }
Ejemplo n.º 2
0
 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();
 }