diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index 2d6759b0..c18c95c9 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -22,9 +22,10 @@ - - - + + + + diff --git a/MP.IOC/Program.cs b/MP.IOC/Program.cs index 6bfc3270..fc2ab5ae 100644 --- a/MP.IOC/Program.cs +++ b/MP.IOC/Program.cs @@ -1,9 +1,16 @@ using Microsoft.Extensions.Configuration; using MP.IOC.Data; +using NLog; +using NLog.Web; using StackExchange.Redis; var builder = WebApplication.CreateBuilder(args); +var logger = LogManager.Setup() + .LoadConfigurationFromAppSettings() + .GetCurrentClassLogger(); +logger.Info("Program.cs: startup"); + // Add services to the container. builder.Services.AddControllers(); @@ -13,6 +20,7 @@ builder.Services.AddSwaggerGen(); ConfigurationManager configuration = builder.Configuration; // REDIS setup +logger.Info("Setup REDIS"); string connStringRedis = configuration.GetConnectionString("Redis"); string redisSrvAddr = connStringRedis.Substring(0, connStringRedis.IndexOf(":")); // avvio oggetto shared x redis... @@ -28,6 +36,7 @@ if (app.Environment.IsDevelopment() || app.Environment.IsStaging()) app.UseSwagger(); app.UseSwaggerUI(); } +logger.Info("Added swagger"); app.UseHttpsRedirection(); @@ -39,4 +48,6 @@ app.UseStaticFiles(); app.MapControllers(); +logger.Info("Run App"); + app.Run(); diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index 46297c1a..2aa300c6 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 6.16.2310.411

+

Versione: 6.16.2409.409


Note di rilascio: