feat: NLog hinzugefügt und über App-Einstellungen konfiguriert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user