Skip to content

Commit cc01caf

Browse files
author
Jicheng Lu
committed
fix console log
1 parent aab468f commit cc01caf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/WebStarter/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
var builder = WebApplication.CreateBuilder(args);
1111

12-
builder.Host.UseSerilog();
12+
Log.Logger = new LoggerConfiguration()
13+
.MinimumLevel.Information()
14+
.WriteTo.Console()
15+
.CreateLogger();
16+
17+
builder.Host.UseSerilog(Log.Logger);
1318

1419
string[] allowedOrigins = builder.Configuration.GetSection("AllowedOrigins").Get<string[]>() ?? new[]
1520
{
@@ -18,8 +23,6 @@
1823
"https://chat.scisharpstack.org"
1924
};
2025

21-
22-
2326
// Add BotSharp
2427
builder.Services.AddBotSharpCore(builder.Configuration, options =>
2528
{

0 commit comments

Comments
 (0)