We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b8bc7 commit cd024e5Copy full SHA for cd024e5
Enyim.StressTest/Program.cs
@@ -30,8 +30,11 @@ static async Task Main(string[] args)
30
{
31
var host = new HostBuilder()
32
.ConfigureHostConfiguration(_ => _.AddJsonFile("appsettings.json", true))
33
- .ConfigureLogging(_ => _.AddConsole())
34
- .ConfigureServices(_ => _.AddEnyimMemcached())
+ .ConfigureLogging((hostingContext, logging) =>
+ {
35
+ logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
36
+ logging.AddConsole();
37
+ }).ConfigureServices(_ => _.AddEnyimMemcached())
38
.Build();
39
40
_memcachedClient = host.Services.GetRequiredService<IMemcachedClient>();
0 commit comments