Browse Source

长阳分支中职
dao 1 month ago
parent
commit
96b1f917c4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      .gitignore
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Log/LogHelper.cs

+ 1
- 1
.gitignore View File

@@ -82,4 +82,4 @@ Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
/Learun.Framework.Ultimate V7/LearunApp-2.2.0/.hbuilderx/launch.json /Learun.Framework.Ultimate V7/LearunApp-2.2.0/.hbuilderx/launch.json
/Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles /Learun.Framework.Ultimate V7/Learun.Application.Web/Properties/PublishProfiles
/Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/QRCode /Learun.Framework.Ultimate V7/Learun.Application.Web/Content/images/QRCode
/Learun.Framework.Ultimate V7/Learun.Application.WebApi/logs/20241022.log
/Learun.Framework.Ultimate V7/Learun.Application.WebApi/logs/

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util/Log/LogHelper.cs View File

@@ -11,7 +11,7 @@ namespace Learun.Util.Log
{ {
#region log #region log
//文件路径 //文件路径
string path = Path.Combine(Directory.GetCurrentDirectory(), "logs");
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logs");
if (!Directory.Exists(path)) if (!Directory.Exists(path))
{ {
Directory.CreateDirectory(path); Directory.CreateDirectory(path);


Loading…
Cancel
Save