private void InitAttributes()
{
if (!this.attributesLoaded)
{
this.attributesLoaded = true;
foreach (DictionaryEntry de in this.Attributes)
{
var key = (string)de.Key;
var value = (string)de.Value;
switch (key.ToUpperInvariant())
{
case "DEFAULTLOGLEVEL":
this.defaultLogLevel = LogLevel.FromString(value);
break;
case "FORCELOGLEVEL":
this.forceLogLevel = LogLevel.FromString(value);
break;
case "AUTOLOGGERNAME":
this.AutoLoggerName = XmlConvert.ToBoolean(value);
break;
case "DISABLEFLUSH":
this.disableFlush = Boolean.Parse(value);
break;
}
}
}
}
}