2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-06-08 16:15:57 +03:00
parent 8143da2eee
commit 340798a5fa
111 changed files with 20647 additions and 27 deletions
+23
View File
@@ -0,0 +1,23 @@
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Esiur.Tests.RPC.ThriftServer;
public static class LoggingHelper
{
public static ILoggerFactory LogFactory { get; } = LoggerFactory.Create(builder => {
ConfigureLogging(builder);
});
public static void ConfigureLogging(ILoggingBuilder logging)
{
logging.SetMinimumLevel(LogLevel.Trace);
logging.AddConsole();
logging.AddDebug();
}
public static ILogger<T> CreateLogger<T>() => LogFactory.CreateLogger<T>();
}