24 lines
640 B
C#
24 lines
640 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 Microsoft.Framework.Logging;
|
|
|
|
namespace Microsoft.AspNet.Mvc
|
|
{
|
|
public class NullLoggerFactory : ILoggerFactory
|
|
{
|
|
public static NullLoggerFactory Instance = new NullLoggerFactory();
|
|
|
|
public LogLevel MinimumLevel { get; set; }
|
|
|
|
public ILogger CreateLogger(string name)
|
|
{
|
|
return NullLogger.Instance;
|
|
}
|
|
|
|
public void AddProvider(ILoggerProvider provider)
|
|
{
|
|
|
|
}
|
|
}
|
|
} |