feat: NLog hinzugefügt und über App-Einstellungen konfiguriert

This commit is contained in:
Developer 02
2025-03-10 15:00:34 +01:00
parent 6a536e950d
commit d108978b63
3 changed files with 52 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
using NLog;
using NLog.Web;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
logger.Info("Logging initialized.");
var builder = WebApplication.CreateBuilder(args);
// Make sure to add the Ocelot configuration file