diff --git a/Directory.Packages.props b/Directory.Packages.props index e8262ad..106b0af 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,52 +1,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RomRepoMgr.Blazor/Program.cs b/RomRepoMgr.Blazor/Program.cs index 1a2cb7f..2222e5f 100644 --- a/RomRepoMgr.Blazor/Program.cs +++ b/RomRepoMgr.Blazor/Program.cs @@ -1,8 +1,23 @@ using Microsoft.FluentUI.AspNetCore.Components; using RomRepoMgr.Blazor.Components; +using Serilog; + +Log.Logger = new LoggerConfiguration() +#if DEBUG + .MinimumLevel.Debug() +#else + .MinimumLevel.Information() +#endif + .WriteTo.Console() + .Enrich.FromLogContext() + .CreateLogger(); + +Log.Information("Welcome to ROM Repository Manager!"); var builder = WebApplication.CreateBuilder(args); +builder.Host.UseSerilog(); // ✅ Plug Serilog into the host + // Add services to the container. builder.Services.AddRazorComponents().AddInteractiveServerComponents(); builder.Services.AddFluentUIComponents(); diff --git a/RomRepoMgr.Blazor/RomRepoMgr.Blazor.csproj b/RomRepoMgr.Blazor/RomRepoMgr.Blazor.csproj index 35ea963..2142b22 100644 --- a/RomRepoMgr.Blazor/RomRepoMgr.Blazor.csproj +++ b/RomRepoMgr.Blazor/RomRepoMgr.Blazor.csproj @@ -9,5 +9,8 @@ + + +