Exemplo n.º 1
0
        public SchedulerHost()
        {
            try
            {
                _logger = LogManager.GetLogger <SchedulerHost>();
                var jobDefinitions      = JobConfig.CreateJobDefinitions(SchedulerConfig.JobsFile);
                var calendarDefinitions = CustomCalendarConfig.CreateCalendarDefinitions(SchedulerConfig.CalendarsFile);
                var customCalendars     = CustomCalendarFactory.CreateAnnualCalendarsWithSpecifiedDatesExcluded(calendarDefinitions);

                _conductor = new Conductor(jobDefinitions, customCalendars, 60000, 90000);
            }
            catch (Exception e)
            {
                _logger.Error($"In constructor: {e.Message}\n\r{e.StackTrace}");
                throw;
            }
        }
Exemplo n.º 2
0
 public virtual void SetUp()
 {
     Security = new SecurityTemplate(true);
     LogManager.Reset();
     LogManager.Adapter = GetLoggerFactoryAdapter();
 }
Exemplo n.º 3
0
        public void CanLogMessageWithExceptionFromTypeLog()
        {
            ILog log = LogManager.GetCurrentClassLogger();

            CanLogMessageWithException(log);
        }
Exemplo n.º 4
0
        public void CanLogMessageWithExceptionFromNamedLog()
        {
            ILog log = LogManager.GetLogger("logger3Name");

            CanLogMessageWithException(log);
        }
Exemplo n.º 5
0
 public void CanLogMessageFromNamedLog()
 {
     CanLogMessage(LogManager.GetLogger("logger2Name"));
 }
Exemplo n.º 6
0
 public void CanCallIsEnabledFromNamedLog()
 {
     CanCallIsEnabled(LogManager.GetLogger("loggerName"));
 }