This commit is contained in:
2026-02-02 21:42:49 +01:00
parent 269dde3860
commit d9454280b9
7 changed files with 187 additions and 121 deletions

View File

@@ -33,7 +33,7 @@
PatternDetectionInterval = TimeSpan.FromMinutes(3)
};
MemoryGuard.Start(_config);
//MemoryGuard.Start(_config);
var builder = WebApplication.CreateBuilder(args);
int onLogCounter = 0;
@@ -94,6 +94,7 @@
// Create the adapter
var adapter = new LogCentralEonaCatAdapter(logger.LoggerSettings, logClient);
await LogManager.Instance.WriteAsync("LogCentral adapter initialized", ELogType.INFO).ConfigureAwait(false);
// Now all EonaCat.Logger logs will be sent to LogCentral automatically
await logger.LogAsync("This is a test log message sent to LogCentral!", ELogType.INFO).ConfigureAwait(false);