diff --git a/EonaCat.Logger.Web/EonaCat.Logger.Web/EonaCat.Logger.Web.csproj b/EonaCat.Logger.Web/EonaCat.Logger.Web/EonaCat.Logger.Web.csproj
index 8cef8e1..06b1c97 100644
--- a/EonaCat.Logger.Web/EonaCat.Logger.Web/EonaCat.Logger.Web.csproj
+++ b/EonaCat.Logger.Web/EonaCat.Logger.Web/EonaCat.Logger.Web.csproj
@@ -6,6 +6,11 @@
enable
+
+
+
+
+
..\..\..\EonaCat.Logger\EonaCat.Logger\bin\Debug\netstandard2.0\EonaCat.Logger.dll
diff --git a/EonaCat.Logger.Web/EonaCat.Logger.Web/Program.cs b/EonaCat.Logger.Web/EonaCat.Logger.Web/Program.cs
index 76879bb..0c066b3 100644
--- a/EonaCat.Logger.Web/EonaCat.Logger.Web/Program.cs
+++ b/EonaCat.Logger.Web/EonaCat.Logger.Web/Program.cs
@@ -1,14 +1,18 @@
using EonaCat.Logger;
using EonaCat.Logger.Extensions;
using EonaCat.Logger.Managers;
+using EonaCat.Web.Tracer;
+using EonaCat.Web.Tracer.Extensions;
+using System.Diagnostics;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
-FileLoggerOptions options = new FileLoggerOptions();
-options.MaxRolloverFiles = 5;
-options.FileSizeLimit = 1 * 1024 * 1024 / 4;
-builder.Logging.AddEonaCatFileLogger(fileLoggerOptions: options, filenamePrefix:"web");
+//FileLoggerOptions options = new FileLoggerOptions();
+//options.MaxRolloverFiles = 5;
+//options.FileSizeLimit = 1 * 1024 * 1024 / 4;
+//builder.Logging.AddEonaCatFileLogger(fileLoggerOptions: options, filenamePrefix:"web");
+
builder.Services.AddRazorPages();
var app = builder.Build();
@@ -21,6 +25,15 @@ if (!app.Environment.IsDevelopment())
app.UseHsts();
}
+WebTracer.OnLog += WebTracer_OnLog;
+
+void WebTracer_OnLog(object? sender, string e)
+{
+ Console.WriteLine(e);
+}
+
+app.UseWebTracer();
+
app.UseHttpsRedirection();
app.UseStaticFiles();
@@ -50,7 +63,7 @@ void RunLoggingExceptionTests()
}
}
-Task.Run(RunWebLoggingTests);
+//Task.Run(RunWebLoggingTests);
//Task.Run(RunLoggingTests);
//Task.Run(RunLoggingExceptionTests);
//Task.Run(RunWebLoggingExeptionTests);
diff --git a/EonaCat.Logger.Web/EonaCat.Logger.Web/libman.json b/EonaCat.Logger.Web/EonaCat.Logger.Web/libman.json
new file mode 100644
index 0000000..ceee271
--- /dev/null
+++ b/EonaCat.Logger.Web/EonaCat.Logger.Web/libman.json
@@ -0,0 +1,5 @@
+{
+ "version": "1.0",
+ "defaultProvider": "cdnjs",
+ "libraries": []
+}
\ No newline at end of file