Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jan 19, 2024
1 parent e8ec149 commit 13d5f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/MDriveSync.Client.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public static void Main(string[] args)
if (env.IsDevelopment())
{
logger.MinimumLevel.Debug()
.Enrich.FromLogContext()
.WriteTo.Console();
.Enrich.FromLogContext();

//.WriteTo.Console();

// 使用 Serilog.Debugging.SelfLog.Enable(Console.Error) 来启用 Serilog 的自我诊断,这将帮助诊断配置问题。
SelfLog.Enable(Console.Error);
Expand Down
6 changes: 3 additions & 3 deletions src/MDriveSync.Client.API/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"rollOnFileSizeLimit": false,
"retainedFileCountLimit": 31
}
},
{
"Name": "Console"
}
//{
// "Name": "Console"
//}
]
},
"Logging": {
Expand Down

0 comments on commit 13d5f89

Please sign in to comment.