Пример #1
0
        protected virtual void ReloadLevels(ILoggerRepository repository)
        {
            LevelMap levelMap = repository.LevelMap;

            this.m_levelDebug = levelMap.LookupWithDefault(Level.Debug);
            this.m_levelInfo  = levelMap.LookupWithDefault(Level.Info);
            this.m_levelWarn  = levelMap.LookupWithDefault(Level.Warn);
            this.m_levelError = levelMap.LookupWithDefault(Level.Error);
            this.m_levelFatal = levelMap.LookupWithDefault(Level.Fatal);
        }
 protected LoggerRepositorySkeleton(PropertiesDictionary properties)
 {
     this.m_properties            = properties;
     this.m_rendererMap           = new log4net.ObjectRenderer.RendererMap();
     this.m_pluginMap             = new log4net.Plugin.PluginMap(this);
     this.m_levelMap              = new log4net.Core.LevelMap();
     this.m_configurationMessages = EmptyCollection.Instance;
     this.m_configured            = false;
     this.AddBuiltinLevels();
     this.m_threshold = Level.All;
 }
Пример #3
0
    /// <summary>
    /// Construct the repository using specific properties
    /// </summary>
    /// <param name="properties">the properties to set for this repository</param>
    /// <remarks>
    /// <para>
    /// Initializes the repository with specified properties.
    /// </para>
    /// </remarks>
    protected LoggerRepositorySkeleton(PropertiesDictionary properties) {
      m_properties = properties;
      m_rendererMap = new RendererMap();
      m_pluginMap = new PluginMap(this);
      m_levelMap = new LevelMap();
      m_configured = false;

      AddBuiltinLevels();

      // Don't disable any levels by default.
      m_threshold = Level.All;
    }
Пример #4
0
 static LevelMap()
 {
     _instance = new LevelMap();
 }