feat: NLog hinzugefügt und konfiguriert

This commit is contained in:
Developer 02
2025-03-10 15:22:35 +01:00
parent ef6d834448
commit 8ef879a663
3 changed files with 51 additions and 0 deletions

View File

@@ -11,6 +11,11 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;
using Microsoft.OpenApi.Models;
using NLog;
using NLog.Web;
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
logger.Info("Logging initialized.");
var builder = WebApplication.CreateBuilder(args);