// 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 LogMessages { get; private set; } = new List(); 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 formatter) { LogMessages.Add(state.ToString()); } } }