示例#1
0
 public static string GetLogDirectory()
 {
     try
     {
         _Log log = new _Log("dd_name");
         string name = log._GetLogFilename();
         return name.Replace(@"\" + System.IO.Path.GetFileName(name), "");
     }
     catch (Exception ex)
     {
     #if DEBUG
         Console.Write(ex.ToString());
     #endif
         return null;
     }
 }
示例#2
0
        public static string GetLogDirectory()
        {
            try
            {
                _Log   log  = new _Log("dd_name");
                string name = log._GetLogFilename();
                return(name.Replace(@"\" + System.IO.Path.GetFileName(name), ""));
            }
            catch (Exception ex)
            {
#if DEBUG
                Console.Write(ex.ToString());
#endif
                return(null);
            }
        }