Example #1
0
        public JDILogger()
        {
            var logRoot = GetValidUrl(ExceptionUtils.AvoidExceptions(() => Properties.Settings.Default["log.path"].ToString()));

            if (!IsNullOrEmpty(logRoot))
            {
                LogDirectoryRoot = () => logRoot;
            }
        }
Example #2
0
 protected static void FillFromSettings(Action <string> action, string name)
 {
     //var b = System.Configuration.ConfigurationManager.AppSettings["DriversFolder"];
     //var a = Properties.Settings.Default["DriversFolder"];
     ExceptionUtils.AvoidExceptions(() => action.Invoke(Default[name].ToString()));
 }
Example #3
0
 protected static void FillFromSettings(Action <string> action, string name)
 {
     ExceptionUtils.AvoidExceptions(() => action.Invoke(Default[name].ToString()));
 }