Closed RPM1984 closed 6 years ago
Hi,
So, simple question and i'm hoping it's a simple answer...
How do we configure the Seq sink/server URL in appsettings.json (ie ASP.NET Core 2).
Program.cs:
Program.cs
var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", false, true) .AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", true) .Build(); Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(configuration) .Enrich.FromLogContext() .CreateLogger();
appsettings.json:
appsettings.json
{ "Serilog": { // what do i do here to configure Seq sink? } }
Thanks 😊
Sorry, my mistake... i (somehow/stupidly) missed the info on the main page. My bad
Hi,
So, simple question and i'm hoping it's a simple answer...
How do we configure the Seq sink/server URL in appsettings.json (ie ASP.NET Core 2).
Program.cs
:appsettings.json
:Thanks 😊