// 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 Microsoft.Framework.Logging; namespace Microsoft.AspNet.Mvc { public class NullLogger : ILogger { public static NullLogger Instance = new NullLogger(); public IDisposable BeginScope(object state) { return NullDisposable.Instance; } public bool WriteCore(TraceType eventType, int eventId, object state, Exception exception, Func formatter) { return false; } } }