mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-09 23:44:20 +01:00
Added blazor logging to serilog
This commit is contained in:
parent
91b28de875
commit
2e619eb48a
|
@ -3,6 +3,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using MudBlazor;
|
using MudBlazor;
|
||||||
using MudBlazor.Services;
|
using MudBlazor.Services;
|
||||||
|
using Serilog;
|
||||||
using SharpRss.Services;
|
using SharpRss.Services;
|
||||||
using WebSharpRSS;
|
using WebSharpRSS;
|
||||||
using WebSharpRSS.Models;
|
using WebSharpRSS.Models;
|
||||||
|
@ -10,6 +11,7 @@ using WebSharpRSS.Models;
|
||||||
Bootstrapper.Bootstrap();
|
Bootstrapper.Bootstrap();
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
builder.Logging.AddSerilog();
|
||||||
builder.Services.AddRazorPages();
|
builder.Services.AddRazorPages();
|
||||||
builder.Services.AddServerSideBlazor();
|
builder.Services.AddServerSideBlazor();
|
||||||
builder.Services.AddSingleton<RssService>();
|
builder.Services.AddSingleton<RssService>();
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MudBlazor" Version="6.2.2" />
|
<PackageReference Include="MudBlazor" Version="6.2.2" />
|
||||||
|
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user