aspnetcore/test/ApiAuth.IS.Test/TestLogger.cs

30 lines
794 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Extensions.Logging;
using System;
namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer
{
internal class TestLogger<TCategory> : ILogger<TCategory>, IDisposable
{
public IDisposable BeginScope<TState>(TState state)
{
return this;
}
public void Dispose()
{
}
public bool IsEnabled(LogLevel logLevel)
{
return true;
}
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
{
}
}
}