Removed some blocking if the logger cannot log to http, tcp or udp

This commit is contained in:
2025-07-25 21:14:23 +02:00
parent d981397b02
commit 182129d9fa
29 changed files with 550 additions and 282 deletions

View File

@@ -8,7 +8,7 @@
<ItemGroup>
<PackageReference Include="EonaCat.Web.RateLimiter" Version="1.0.3" />
<PackageReference Include="EonaCat.Web.Tracer" Version="1.1.9" />
<PackageReference Include="EonaCat.Web.Tracer" Version="2.0.2" />
</ItemGroup>
<ItemGroup>

View File

@@ -53,6 +53,18 @@ options.UseMask = true;
builder.Logging.AddEonaCatFileLogger(fileLoggerOptions: options, filenamePrefix: "web");
builder.Logging.AddEonaCatConsoleLogger();
TcpLoggerOptions tcpLoggerOptions = new TcpLoggerOptions
{
Host = "192.168.1.1",
Port = 12345,
};
builder.Logging.AddEonaCatTcpLogger((tcpLoggerOptions) =>
{
tcpLoggerOptions.Port = 12345;
tcpLoggerOptions.Host = "192.168.1.1";
});
builder.Services.AddRazorPages();
//var rateLimitOptions = new RateLimitOptions