Reacting to disposable logger provider
This commit is contained in:
parent
3c6868110a
commit
97e66878a7
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue