src/Foundation/Common/Gimela.Common.Logging/FileLog/FileLogger.cs
/// <summary>
/// Gets the log file directory.
/// </summary>
/// <returns></returns>
Gets the log file directory.
Gets the log file directory .
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
    public static string GetLogFileDirectory()
    {
      string dir = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
      if (string.IsNullOrEmpty(dir))
      {
        dir = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
      }
      dir = System.IO.Path.Combine(dir, @"log");
      if (!Directory.Exists(dir))
      {
        Directory.CreateDirectory(dir);
      }
      return dir;
    }
[ SuppressMessage ( " " , " " ) ] public static string GetLogFileDirectory ( ) { string dir = System . AppDomain . CurrentDomain . SetupInformation . ApplicationBase ; if ( string . IsNullOrEmpty ( dir ) ) { dir = Environment . GetFolderPath ( Environment . SpecialFolder . Desktop ) ; } dir = System . IO . Path . Combine ( dir , @"log" ) ; if ( ! Directory . Exists ( dir ) ) { Directory . CreateDirectory ( dir ) ; } return dir ; }
Gets the log file directory.
Gets the log file directory .
None