29 lines
872 B
C#
29 lines
872 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.Framework.Logging;
|
|
|
|
namespace Microsoft.AspNet.Identity.Test
|
|
{
|
|
public class TestLogger : ILogger
|
|
{
|
|
public IList<string> LogMessages { get; private set; } = new List<string>();
|
|
|
|
public IDisposable BeginScope(object state)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public bool IsEnabled(LogLevel logLevel)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public void Write(LogLevel logLevel, int eventId, object state, Exception exception, Func<object, Exception, string> formatter)
|
|
{
|
|
LogMessages.Add(state.ToString());
|
|
}
|
|
}
|
|
} |