first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace OpenWarehouse.Common.Lib;
public static class BuildLogger
{
public static ILogger GetBuildLogger<T>(this T builder)
where T : IHostApplicationBuilder
{
using var loggerFactory = LoggerFactory.Create(loggingBuilder => loggingBuilder
.SetMinimumLevel(LogLevel.Information)
.AddConsole());
ILogger logger = loggerFactory.CreateLogger<T>();
return logger;
}
}