diff --git a/doc/Diagrammes/Cas_D'Utilisation.png b/doc/Diagrammes/Cas_D'Utilisation.png
new file mode 100644
index 0000000..a4363a9
Binary files /dev/null and b/doc/Diagrammes/Cas_D'Utilisation.png differ
diff --git a/doc/Boutique.png b/doc/Maquette/Boutique.png
similarity index 100%
rename from doc/Boutique.png
rename to doc/Maquette/Boutique.png
diff --git a/doc/Maquette_Home.png b/doc/Maquette/Maquette_Home.png
similarity index 100%
rename from doc/Maquette_Home.png
rename to doc/Maquette/Maquette_Home.png
diff --git a/doc/OuvertureCoffre.png b/doc/Maquette/OuvertureCoffre.png
similarity index 100%
rename from doc/OuvertureCoffre.png
rename to doc/Maquette/OuvertureCoffre.png
diff --git a/src/CraftSharp/Pages/Index.razor b/src/CraftSharp/Pages/Index.razor
index 5570bf5..aab39ed 100644
--- a/src/CraftSharp/Pages/Index.razor
+++ b/src/CraftSharp/Pages/Index.razor
@@ -34,3 +34,6 @@
Vous n'etes pas connecté
+
+
+
diff --git a/src/CraftSharp/Pages/Index.razor.cs b/src/CraftSharp/Pages/Index.razor.cs
index c350962..46a0474 100644
--- a/src/CraftSharp/Pages/Index.razor.cs
+++ b/src/CraftSharp/Pages/Index.razor.cs
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Localization;
using CraftSharp.Models;
+using Microsoft.Extensions.Logging;
namespace CraftSharp.Pages
{
@@ -9,5 +10,18 @@ namespace CraftSharp.Pages
[Inject]
public IStringLocalizer Localizer { get; set; }
+ [Inject]
+ public ILogger Logger { get; set; }
+
+ private void CreateLogs()
+ {
+ var logLevels = Enum.GetValues(typeof(LogLevel)).Cast();
+
+ foreach (var logLevel in logLevels.Where(l => l != LogLevel.None))
+ {
+ Logger.Log(logLevel, $"Log message for the level: {logLevel}");
+ }
+ }
+
}
}
diff --git a/src/CraftSharp/Program.cs b/src/CraftSharp/Program.cs
index a6a4f59..075c195 100644
--- a/src/CraftSharp/Program.cs
+++ b/src/CraftSharp/Program.cs
@@ -33,6 +33,7 @@ builder.Services.AddLocalization(opts => { opts.ResourcesPath = "Resources"; });
builder.Services.AddHttpClient();
builder.Services.AddBlazoredModal();
+builder.Logging.AddConfiguration(builder.Configuration.GetSection("Logging"));
builder.Services
.AddBlazorise()
diff --git a/src/CraftSharp/wwwroot/appsettings.json b/src/CraftSharp/wwwroot/appsettings.json
new file mode 100644
index 0000000..ef6372d
--- /dev/null
+++ b/src/CraftSharp/wwwroot/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Trace",
+ "Microsoft": "Warning",
+ "Microsoft.Hosting.Lifetime": "Information"
+ }
+ }
+}
\ No newline at end of file