Removed some blocking if the logger cannot log to http, tcp or udp
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user