Update Kestrel port and add console logging
This commit is contained in:
@@ -14,13 +14,14 @@ if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
builder.WebHost.ConfigureKestrel(options =>
|
||||
{
|
||||
// Setup a HTTP/2 endpoint without TLS.
|
||||
options.ListenLocalhost(5000, o => o.Protocols =
|
||||
options.ListenLocalhost(5001, o => o.Protocols =
|
||||
HttpProtocols.Http2);
|
||||
});
|
||||
}
|
||||
|
||||
var levelSwitch = new LoggingLevelSwitch();
|
||||
var logger = new LoggerConfiguration()
|
||||
.WriteTo.Console()
|
||||
.WriteTo.Seq(builder.Configuration["Seq:ServerUrl"] ?? "http://seq-svc:5341",
|
||||
apiKey: string.IsNullOrEmpty(builder.Configuration["Seq:ApiKey"]) ? null : builder.Configuration["Seq:ApiKey"],
|
||||
controlLevelSwitch: levelSwitch)
|
||||
|
||||
Reference in New Issue
Block a user