mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
RPC Test
This commit is contained in:
1 parent
8143da2eee
commit
340798a5fa
111 files changed
+20647
-27
No files matched your search
@@ -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>();
|
||||
}
|
||||
Reference in new issue
Block a user