diff --git a/MP.INVE/Data/MiDataService.cs b/MP.INVE/Data/MiDataService.cs
index 09b5488e..d4b71a40 100644
--- a/MP.INVE/Data/MiDataService.cs
+++ b/MP.INVE/Data/MiDataService.cs
@@ -6,6 +6,7 @@ using StackExchange.Redis;
using System.Diagnostics;
using EgwCoreLib.Razor;
using EgwCoreLib.Razor.Data;
+using EgwCoreLib.Utils;
namespace MP.INVE.Data
{
diff --git a/MP.INVE/MP.INVE.csproj b/MP.INVE/MP.INVE.csproj
index 13ee92b2..60f976f6 100644
--- a/MP.INVE/MP.INVE.csproj
+++ b/MP.INVE/MP.INVE.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.INVE
- 6.16.2402.1914
+ 6.16.2409.408
@@ -21,11 +21,14 @@
-
+
-
-
+
+
+
+
+
diff --git a/MP.INVE/NLog.config b/MP.INVE/NLog.config
deleted file mode 100644
index b32ba10a..00000000
--- a/MP.INVE/NLog.config
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/MP.INVE/Program.cs b/MP.INVE/Program.cs
index 76d25e2a..e6c81e3f 100644
--- a/MP.INVE/Program.cs
+++ b/MP.INVE/Program.cs
@@ -6,6 +6,8 @@ using Microsoft.AspNetCore.Components.Web;
using MP.INVE.Components;
using MP.INVE.Data;
using MP.INVE.Services;
+using NLog;
+using NLog.Web;
using StackExchange.Redis;
var builder = WebApplication.CreateBuilder(args);
@@ -18,9 +20,16 @@ var builder = WebApplication.CreateBuilder(args);
*
* */
+
+var logger = LogManager.Setup()
+ .LoadConfigurationFromAppSettings()
+ .GetCurrentClassLogger();
+logger.Info("Program.cs: startup");
+
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...
@@ -41,6 +50,8 @@ builder.Services.AddBlazoredLocalStorage();
builder.Services.AddHttpClient();
builder.Services.AddSingleton();
+logger.Info("Aggiunti services");
+
var app = builder.Build();
// Configure the HTTP request pipeline.
@@ -60,4 +71,5 @@ app.UseRouting();
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");
+logger.Info("Run App");
app.Run();
diff --git a/MP.INVE/Resources/ChangeLog.html b/MP.INVE/Resources/ChangeLog.html
index 133369ca..b166755d 100644
--- a/MP.INVE/Resources/ChangeLog.html
+++ b/MP.INVE/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOINVE
- Versione: 6.16.2402.1914
+ Versione: 6.16.2409.408
Note di rilascio:
-
diff --git a/MP.INVE/Resources/VersNum.txt b/MP.INVE/Resources/VersNum.txt
index a4449e2e..9fd70b9c 100644
--- a/MP.INVE/Resources/VersNum.txt
+++ b/MP.INVE/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2402.1914
+6.16.2409.408
diff --git a/MP.INVE/Resources/manifest.xml b/MP.INVE/Resources/manifest.xml
index 7d28b553..9866626f 100644
--- a/MP.INVE/Resources/manifest.xml
+++ b/MP.INVE/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2402.1914
+ 6.16.2409.408
https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/MP.INVE.zip
https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/ChangeLog.html
false
diff --git a/MP.INVE/appsettings.json b/MP.INVE/appsettings.json
index 7511901f..0caf0371 100644
--- a/MP.INVE/appsettings.json
+++ b/MP.INVE/appsettings.json
@@ -5,6 +5,49 @@
"Microsoft.AspNetCore": "Warning"
}
},
+ "NLog": {
+ "variables": {
+ "baseFileDir": "${basedir}/logs/",
+ "layout": "${longdate} | ${uppercase:${level}} | ${logger:shortName=false} | ${message}"
+ },
+ // "internalLogLevel": "Info",
+ // "internalLogFile": "c:\\temp\\internal-nlog.txt",
+ "extensions": [
+ { "assembly": "NLog.Extensions.Logging" },
+ { "assembly": "NLog.Web.AspNetCore" }
+ ],
+ "throwConfigExceptions": true,
+ "targets": {
+ "async": true,
+ "logfile": {
+ "type": "File",
+ "fileName": "${basedir}/logs/${shortdate}.log",
+ "archiveEvery": "Day",
+ "archiveFileName": "${basedir}/logs/old/${shortdate}_{#}.log",
+ "archiveNumbering": "DateAndSequence",
+ "archiveAboveSize": "1024000",
+ "archiveDateFormat": "HH",
+ "maxArchiveFiles": "60",
+ "maxArchiveDays": "30"
+ },
+ "logconsole": {
+ "type": "ColoredConsole",
+ "layout": "${longdate} | ${uppercase:${level}} | ${logger:shortName=true} | ${message}"
+ }
+ },
+ "rules": [
+ {
+ "logger": "*",
+ "minLevel": "Trace",
+ "writeTo": "logconsole"
+ },
+ {
+ "logger": "*",
+ "minLevel": "Info",
+ "writeTo": "logfile"
+ }
+ ]
+ },
"AllowedHosts": "*",
"CodApp": "MP.INVE",
"ConnectionStrings": {