public void Setup()
        {
            LoggingSettings settings = new LoggingSettings();
            settings.SpecialTraceSources.AllEventsTraceSource.DefaultLevel = SourceLevels.Critical;
            settings.SpecialTraceSources.AllEventsTraceSource.AutoFlush = false;
            settings.SpecialTraceSources.NotProcessedTraceSource.DefaultLevel = SourceLevels.Error;
            settings.SpecialTraceSources.NotProcessedTraceSource.AutoFlush = true;
            settings.SpecialTraceSources.ErrorsTraceSource.DefaultLevel = SourceLevels.Verbose;
            settings.SpecialTraceSources.ErrorsTraceSource.AutoFlush = false;

            registrations = settings.GetRegistrations(null);
        }
        public void Setup()
        {
            LoggingSettings settings = new LoggingSettings();
            settings.TraceSources.Add(new TraceSourceData("source 1", SourceLevels.Critical));
            settings.TraceSources.Add(new TraceSourceData("source 2", SourceLevels.Critical));

            registrations = settings.GetRegistrations(null);
        }
        public void Setup()
        {
            LoggingSettings settings = new LoggingSettings();
            settings.Formatters.Add(new TextFormatterData("text", "template"));
            settings.Formatters.Add(new CustomFormatterData("custom", typeof(MockCustomLogFormatter)));

            registrations = settings.GetRegistrations(null);
        }
 public void Setup()
 {
     LoggingSettings settings = new LoggingSettings();
     registrations = settings.GetRegistrations(null);
 }
        public void Setup()
        {
            LoggingSettings settings = new LoggingSettings();
            settings.LogFilters.Add(new PriorityFilterData("priority", 10));
            settings.LogFilters.Add(new LogEnabledFilterData("enabled", false));

            registrations = settings.GetRegistrations(null);
        }
        public void Setup()
        {
            LoggingSettings settings = new LoggingSettings();
            settings.TraceListeners.Add(new FormattedEventLogTraceListenerData("event log", "source", null));
            settings.TraceListeners.Add(new WmiTraceListenerData("wmi"));

            registrations = settings.GetRegistrations(null);
        }