mirror of
https://github.com/roflmuffin/CounterStrikeSharp.git
synced 2025-12-07 08:26:34 -08:00
23 lines
620 B
C#
23 lines
620 B
C#
using CounterStrikeSharp.API.Core.Logging;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace CounterStrikeSharp.API.Tests.Fixtures;
|
|
|
|
public class CoreLoggingFixture : IDisposable
|
|
{
|
|
public CoreLoggingFixture()
|
|
{
|
|
var serviceProvider = new ServiceCollection()
|
|
.AddLogging(builder =>
|
|
{
|
|
builder.ClearProviders();
|
|
builder.AddCoreLogging(TestUtils.GetTestPath(""));
|
|
})
|
|
.BuildServiceProvider();
|
|
}
|
|
public void Dispose()
|
|
{
|
|
// TODO release managed resources here
|
|
}
|
|
} |