Ejemplo n.º 1
0
        /// <summary>
        /// Обязательно вызывать в блоке try{}
        /// </summary>
        public static XmlLogSettings LoadXmlSetting(XElement xml)
        {
            XmlLogSettings settings =
                new XmlLogSettings(
                    (string)xml?.Element("LogSetting")?.Element("PortionString"),
                    (string)xml?.Element("LogSetting")?.Element("CountPortion"));

            return(settings);
        }
Ejemplo n.º 2
0
 public Log(string filename, XmlLogSettings settings) : this(filename, settings.PortionString, settings.CountPortion)
 {
 }