Ejemplo n.º 1
0
        public void SetupRepository()
        {
            controller_ = LogManager.CreateController("");

            countingAppender_ = new CountingAppender();
            countingAppender_.Activate();

            bufferingForwardingAppender_ = new AppenderLoggerBufferForward();
            bufferingForwardingAppender_.AddAppender(countingAppender_);

            bufferingForwardingAppender_.Size = 5;
            bufferingForwardingAppender_.ClearFilter();
            //m_bufferingForwardingAppender.Fix = FixFlags.Partial;
            bufferingForwardingAppender_.Lossy        = false;
            bufferingForwardingAppender_.TriggerLossy = null;
            bufferingForwardingAppender_.Threshold    = Level.All;
        }
Ejemplo n.º 2
0
        private void SetupController()
        {
            controller_ = new LoggerController();

            countingAppender_ = new CountingAppender();
            countingAppender_.Activate();

            bufferingForwardingAppender_ = new AppenderLoggerBufferForward();
            bufferingForwardingAppender_.AddAppender(countingAppender_);

            bufferingForwardingAppender_.Size = 0;
            bufferingForwardingAppender_.ClearFilter();
            bufferingForwardingAppender_.Trigger = null;
            //m_bufferingForwardingAppender.Fix = FixFlags.Partial;
            bufferingForwardingAppender_.Lossy        = false;
            bufferingForwardingAppender_.TriggerLossy = null;
            bufferingForwardingAppender_.Threshold    = Level.All;

            bufferingForwardingAppender_.Activate();

            BasicConfig.Config(controller_, bufferingForwardingAppender_);
        }