Beispiel #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;
            }
        }
Beispiel #2
0
 public virtual void SetUp()
 {
     Security = new SecurityTemplate(true);
     LogManager.Reset();
     LogManager.Adapter = GetLoggerFactoryAdapter();
 }
Beispiel #3
0
        public void CanLogMessageWithExceptionFromTypeLog()
        {
            ILog log = LogManager.GetCurrentClassLogger();

            CanLogMessageWithException(log);
        }
Beispiel #4
0
        public void CanLogMessageWithExceptionFromNamedLog()
        {
            ILog log = LogManager.GetLogger("logger3Name");

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