|
@@ -1,6 +1,5 @@
|
|
|
using Hotline.Api;
|
|
|
using Serilog;
|
|
|
-using Serilog.Formatting.Display;
|
|
|
using XF.Domain.Authentications;
|
|
|
|
|
|
Log.Logger = new LoggerConfiguration()
|
|
@@ -35,19 +34,12 @@ try
|
|
|
.AddCommandLine(args)
|
|
|
;
|
|
|
})
|
|
|
- //.UseSerilog((ctx, lc) => lc
|
|
|
- ////.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level}] {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}")
|
|
|
- //.Enrich.FromLogContext()
|
|
|
- //.ReadFrom.Configuration(ctx.Configuration), true)
|
|
|
- ;
|
|
|
-
|
|
|
- builder.Services.AddSerilog((services, lc) => lc
|
|
|
- .ReadFrom.Configuration(builder.Configuration)
|
|
|
- .ReadFrom.Services(services)
|
|
|
+ .UseSerilog((ctx, lc) => lc
|
|
|
+ //.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level}] {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}")
|
|
|
.Enrich.FromLogContext()
|
|
|
- );
|
|
|
-
|
|
|
-
|
|
|
+ .ReadFrom.Configuration(ctx.Configuration), true)
|
|
|
+ ;
|
|
|
+ //builder.Services.AddControllers().AddNewtonsoftJson();
|
|
|
builder
|
|
|
.ConfigureServices()
|
|
|
.ConfigurePipelines()
|