private void CreateDefaultMemoryAppender()
 {
     _memoryAppender = new RollingMemoryAppender();
     _memoryAppender.Name = "DeveloperToolsLogViewer";
     _memoryAppender.ActivateOptions();
     log4net.Repository.Hierarchy.Hierarchy repository = LogManager.GetRepository() as Hierarchy;
     repository.Root.AddAppender(_memoryAppender);
     repository.Root.Level = Level.All;
     repository.Configured = true;
     repository.RaiseConfigurationChanged(EventArgs.Empty);
 }
        private void InitMessageLogger()
        {
            var appenderCollection = _hierarchy.Root.Appenders;

            foreach (var item in appenderCollection)
            {
                var ma = item as RollingMemoryAppender;
                if(ma != null)
                {
                    _memoryAppender = (RollingMemoryAppender) item;
                    _memoryAppender.ActivateOptions();
                    return;
                }
            }
        }