refactor: rename Api project to Web
- HrynCo.NotificationService.Api -> HrynCo.NotificationService.Web - HrynCo.NotificationService.Api.IntegrationTests -> HrynCo.NotificationService.Web.IntegrationTests - Updated slnx, docker-compose, project references, and namespaces - Project serves both REST API and admin UI Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Serilog;
|
||||
|
||||
namespace HrynCo.NotificationService.Web;
|
||||
|
||||
public static class SerilogRegistrar
|
||||
{
|
||||
public static void AddSerilog(this WebApplicationBuilder builder)
|
||||
{
|
||||
var loggerConfiguration = new LoggerConfiguration()
|
||||
.ReadFrom.Configuration(builder.Configuration)
|
||||
.Enrich.FromLogContext();
|
||||
|
||||
Log.Logger = loggerConfiguration.CreateLogger();
|
||||
|
||||
builder.Logging.AddSerilog(Log.Logger);
|
||||
builder.Host.UseSerilog();
|
||||
|
||||
builder.Services.AddSingleton(Log.Logger);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user