Reacting to disposable logger provider

This commit is contained in:
Kiran Challa 2015-08-11 14:18:08 -07:00
parent 3c6868110a
commit 97e66878a7
3 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// 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 System;
using Microsoft.Framework.Internal;
using Microsoft.Framework.Logging;
@ -21,5 +22,9 @@ namespace Microsoft.AspNet.Diagnostics.Elm
{
return new ElmLogger(name, _options, _store);
}
public void Dispose()
{
}
}
}

View File

@ -1,6 +1,7 @@
// 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 System;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Diagnostics.Entity
@ -18,5 +19,9 @@ namespace Microsoft.AspNet.Diagnostics.Entity
{
get { return _logger; }
}
public virtual void Dispose()
{
}
}
}

View File

@ -21,6 +21,10 @@ namespace Microsoft.AspNet.Diagnostics.Entity.FunctionalTests.Helpers
return _logger;
}
public void Dispose()
{
}
public class TestLogger : ILogger
{
private List<string> _messages = new List<string>();
@ -34,7 +38,7 @@ namespace Microsoft.AspNet.Diagnostics.Entity.FunctionalTests.Helpers
{
_messages.Add(formatter(state, exception));
}
public bool IsEnabled(LogLevel logLevel)
{
return true;